Package libsidplay

Klasse HardwareEnsemble

java.lang.Object
libsidplay.HardwareEnsemble
Alle implementierten Schnittstellen:
Ultimate64
Bekannte direkte Unterklassen:
Player

public class HardwareEnsemble extends Object implements Ultimate64
The HardwareEnsemble contains a C64 computer and additional peripherals.
It is meant as a complete hardware setup (C64, tape/disk drive, printer and more).
Autor:
Ken Händel
  • Felddetails

    • JIFFYDOS_C64

      private final byte[] JIFFYDOS_C64
    • JIFFYDOS_C1541

      private final byte[] JIFFYDOS_C1541
    • EOD_HACK

      private static byte[] EOD_HACK
    • EOD_HACK2

      private static final byte[] EOD_HACK2
    • config

      protected IConfig config
      Configuration.
    • c64

      protected C64 c64
      C64 computer.
    • datasette

      protected Datasette datasette
      C1530 datasette.
    • iecBus

      protected IECBus iecBus
      IEC bus.
    • serialDevices

      protected SerialIECDevice[] serialDevices
      Additional serial devices like a printer (except of the floppies).
    • floppies

      protected C1541[] floppies
      C1541 floppy disk drives.
    • c1541Runner

      protected C1541Runner c1541Runner
      Responsible to keep C64 and C1541 in sync.
    • printer

      protected MPS803 printer
      MPS803 printer.
    • policy

      private IExtendImageListener policy
      Disk image extension policy (handle track number greater than 35).
  • Konstruktordetails

    • HardwareEnsemble

      public HardwareEnsemble(IConfig config, Function<EventScheduler,MOS6510> cpuCreator, byte[] charBin, byte[] basicBin, byte[] kernalBin, byte[] jiffyDosC64Bin, byte[] jiffyDosC1541Bin, byte[] c1541Bin, byte[] c1541_IIBin, byte[] mps803CharBin)
      Create a complete hardware setup (C64, tape/disk drive, printer and more).
  • Methodendetails

    • getConfig

      public final IConfig getConfig()
      Get Configuration
      Gibt zurück:
      configuration
    • getC64

      public final C64 getC64()
      Get C64.
      Gibt zurück:
      C64
    • getDatasette

      public final Datasette getDatasette()
      Get C1530 datasette.
      Gibt zurück:
      C1530 datasette
    • getFloppies

      public final C1541[] getFloppies()
      Get C1541 floppies.
      Gibt zurück:
      C1541 floppies
    • getPrinter

      public final MPS803 getPrinter()
      Get MPS803 printer.
      Gibt zurück:
      MPS803 printer
    • setClock

      public void setClock(CPUClock cpuFreq)
      Set frequency (PAL/NTSC)
      Parameter:
      cpuFreq - frequency (PAL/NTSC)
    • reset

      public void reset()
      Reset hardware.
    • enableFloppyDiskDrives

      public final void enableFloppyDiskDrives(boolean on)
      Enable floppy disk drives.
      Parameter:
      on - floppy disk drives enable
    • connectC64AndC1541WithParallelCable

      public final void connectC64AndC1541WithParallelCable(boolean connected)
      Plug-in a parallel cable between the C64 user port and the C1541 floppy disk drive.
      Parameter:
      connected - connected enable
    • makeCableBetweenC64AndC1541

      private IParallelCable makeCableBetweenC64AndC1541()
      Create a parallel cable between the C64 user port and the C1541 floppy disk drive.
      Gibt zurück:
      parallel cable
    • enablePrinter

      public final void enablePrinter(boolean printerOn)
      Turn-on printer.
      Parameter:
      printerOn - printer on/off
    • setExtendImagePolicy

      public final void setExtendImagePolicy(IExtendImageListener policy)
      Extend floppy disk strategy (> 35 tracks)
      Parameter:
      policy - extension policy
    • insertDisk

      public final void insertDisk(File file) throws IOException
      Insert a disk into the first floppy disk drive.
      Parameter:
      file - disk file to insert
      Löst aus:
      IOException - image read error
    • installHack

      private void installHack(File file)
    • insertTape

      public final void insertTape(File file) throws IOException, SidTuneError
      Insert a tape into the datasette.
      Note: If the file is different to the TAP format, it will be converted.
      Parameter:
      file - tape file to insert
      Löst aus:
      IOException - image read error
      SidTuneError
    • insertCartridge

      public final void insertCartridge(CartridgeType type, int sizeKB) throws IOException
      Insert a cartridge of a given size with empty contents.
      Parameter:
      type - cartridge type
      sizeKB - size in KB
      Löst aus:
      IOException - never thrown here
    • insertCartridge

      public final void insertCartridge(CartridgeType type, File file) throws IOException
      Insert a cartridge loading an image file.
      Parameter:
      type - cartridge type
      file - file to load the RAM contents
      Löst aus:
      IOException - image read error
    • insertCartridgeCRT

      public final void insertCartridgeCRT(InputStream is) throws IOException
      Insert a cartridge of type CRT loading an image.
      Parameter:
      is - input stream to load the RAM contents
      Löst aus:
      IOException - image read error