| Modifier and Type | Field and Description |
|---|---|
protected C1541Runner |
c1541Runner
Responsible to keep C64 and C1541 in sync.
|
protected C64 |
c64
C64 computer.
|
protected IConfig |
config
Configuration.
|
protected Datasette |
datasette
C1530 datasette.
|
protected C1541[] |
floppies
C1541 floppy disk drives.
|
protected IECBus |
iecBus
IEC bus.
|
protected MPS803 |
printer
MPS803 printer.
|
protected SerialIECDevice[] |
serialDevices
Additional serial devices like a printer (except of the floppies).
|
| Constructor and Description |
|---|
HardwareEnsemble(IConfig config)
Create a complete hardware setup (C64, tape/disk drive, printer and more).
|
HardwareEnsemble(IConfig config,
Class<? extends MOS6510> cpuClass)
Create a complete hardware setup (C64, tape/disk drive, printer and more).
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectC64AndC1541WithParallelCable(boolean connected)
Plug-in a parallel cable between the C64 user port and the C1541 floppy disk
drive.
|
void |
enableFloppyDiskDrives(boolean on)
Enable floppy disk drives.
|
void |
enablePrinter(boolean printerOn)
Turn-on printer.
|
C64 |
getC64()
Get C64.
|
IConfig |
getConfig()
Get Configuration
|
Datasette |
getDatasette()
Get C1530 datasette.
|
C1541[] |
getFloppies()
Get C1541 floppies.
|
MPS803 |
getPrinter()
Get MPS803 printer.
|
void |
insertCartridge(CartridgeType type,
File file)
Insert a cartridge loading an image file.
|
void |
insertCartridge(CartridgeType type,
int sizeKB)
Insert a cartridge of a given size with empty contents.
|
void |
insertCartridgeCRT(InputStream is)
Insert a cartridge of type CRT loading an image.
|
void |
insertDisk(File file)
Insert a disk into the first floppy disk drive.
|
void |
insertTape(File file)
Insert a tape into the datasette.
|
protected void |
reset()
Reset hardware.
|
protected void |
setClock(CPUClock cpuFreq)
Set frequency (PAL/NTSC)
|
void |
setExtendImagePolicy(IExtendImageListener policy)
Extend floppy disk strategy (> 35 tracks)
|
protected IConfig config
protected C64 c64
protected Datasette datasette
protected IECBus iecBus
protected SerialIECDevice[] serialDevices
protected C1541[] floppies
protected C1541Runner c1541Runner
protected MPS803 printer
public HardwareEnsemble(IConfig config)
public final IConfig getConfig()
public final C64 getC64()
public final Datasette getDatasette()
public final C1541[] getFloppies()
public final MPS803 getPrinter()
protected void setClock(CPUClock cpuFreq)
cpuFreq - frequency (PAL/NTSC)protected void reset()
public final void enableFloppyDiskDrives(boolean on)
on - floppy disk drives enablepublic final void connectC64AndC1541WithParallelCable(boolean connected)
connected - connected enablepublic final void enablePrinter(boolean printerOn)
printerOn - printer on/offpublic final void setExtendImagePolicy(IExtendImageListener policy)
policy - extension policypublic final void insertDisk(File file) throws IOException, SidTuneError
file - disk file to insertIOException - image read errorSidTuneErrorpublic final void insertTape(File file) throws IOException, SidTuneError
file - tape file to insertIOException - image read errorSidTuneErrorpublic final void insertCartridge(CartridgeType type, int sizeKB) throws IOException
type - cartridge typesizeKB - size in KBIOException - never thrown herepublic final void insertCartridge(CartridgeType type, File file) throws IOException
type - cartridge typefile - file to load the RAM contentsIOException - image read errorpublic final void insertCartridgeCRT(InputStream is) throws IOException
is - input stream to load the RAM contentsIOException - image read errorCopyright © 2018 Ken Händel. All rights reserved.