Package libsidplay
Klasse HardwareEnsemble
java.lang.Object
libsidplay.HardwareEnsemble
- Alle implementierten Schnittstellen:
Ultimate64
- Bekannte direkte Unterklassen:
Player
The HardwareEnsemble contains a C64 computer and additional peripherals.
It is meant as a complete hardware setup (C64, tape/disk drive, printer and more).
It is meant as a complete hardware setup (C64, tape/disk drive, printer and more).
- Autor:
- Ken Händel
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen libsidplay.Ultimate64
Ultimate64.SocketCommand, Ultimate64.SocketStreamingCommand -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected C1541RunnerResponsible to keep C64 and C1541 in sync.protected C64C64 computer.protected IConfigConfiguration.protected DatasetteC1530 datasette.private static byte[]private static final byte[]protected C1541[]C1541 floppy disk drives.protected IECBusIEC bus.private final byte[]private final byte[]private IExtendImageListenerDisk image extension policy (handle track number greater than 35).protected MPS803MPS803 printer.protected SerialIECDevice[]Additional serial devices like a printer (except of the floppies).Von Schnittstelle geerbte Felder libsidplay.Ultimate64
MAX_COMMAND_LEN, SOCKET_CONNECT_TIMEOUT -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHardwareEnsemble(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). -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal voidconnectC64AndC1541WithParallelCable(boolean connected) Plug-in a parallel cable between the C64 user port and the C1541 floppy disk drive.final voidenableFloppyDiskDrives(boolean on) Enable floppy disk drives.final voidenablePrinter(boolean printerOn) Turn-on printer.final C64getC64()Get C64.final IConfigGet Configurationfinal DatasetteGet C1530 datasette.final C1541[]Get C1541 floppies.final MPS803Get MPS803 printer.final voidinsertCartridge(CartridgeType type, int sizeKB) Insert a cartridge of a given size with empty contents.final voidinsertCartridge(CartridgeType type, File file) Insert a cartridge loading an image file.final voidInsert a cartridge of type CRT loading an image.final voidinsertDisk(File file) Insert a disk into the first floppy disk drive.final voidinsertTape(File file) Insert a tape into the datasette.
Note: If the file is different to the TAP format, it will be converted.private voidinstallHack(File file) private IParallelCableCreate a parallel cable between the C64 user port and the C1541 floppy disk drive.voidreset()Reset hardware.voidSet frequency (PAL/NTSC)final voidExtend floppy disk strategy (> 35 tracks)Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden libsidplay.Ultimate64
sendCommand, sendInsertDisk, sendRamAndRun, sendRamAndSys, sendReset, sendWait, startStreaming, stopStreaming
-
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
Configuration. -
c64
C64 computer. -
datasette
C1530 datasette. -
iecBus
IEC bus. -
serialDevices
Additional serial devices like a printer (except of the floppies). -
floppies
C1541 floppy disk drives. -
c1541Runner
Responsible to keep C64 and C1541 in sync. -
printer
MPS803 printer. -
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
Get Configuration- Gibt zurück:
- configuration
-
getC64
Get C64.- Gibt zurück:
- C64
-
getDatasette
Get C1530 datasette.- Gibt zurück:
- C1530 datasette
-
getFloppies
Get C1541 floppies.- Gibt zurück:
- C1541 floppies
-
getPrinter
Get MPS803 printer.- Gibt zurück:
- MPS803 printer
-
setClock
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
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
Extend floppy disk strategy (> 35 tracks)- Parameter:
policy- extension policy
-
insertDisk
Insert a disk into the first floppy disk drive.- Parameter:
file- disk file to insert- Löst aus:
IOException- image read error
-
installHack
-
insertTape
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 errorSidTuneError
-
insertCartridge
Insert a cartridge of a given size with empty contents.- Parameter:
type- cartridge typesizeKB- size in KB- Löst aus:
IOException- never thrown here
-
insertCartridge
Insert a cartridge loading an image file.- Parameter:
type- cartridge typefile- file to load the RAM contents- Löst aus:
IOException- image read error
-
insertCartridgeCRT
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
-