public final class C1541 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
C1541.FloppyStatus |
Constructor and Description |
---|
C1541(IECBus iecBus,
int deviceID,
FloppyType type)
Create a new C1541 instance.
|
Modifier and Type | Method and Description |
---|---|
VIA6522BC |
getBusController()
Get Bus controller of this floppy.
|
MOS6510 |
getCPU()
Get CPU of the floppy.
|
VIA6522DC |
getDiskController()
Get disk controller of the floppy.
|
String |
getDiskName() |
EventScheduler |
getEventScheduler()
Get event scheduler.
|
FloppyType |
getFloppyType() |
int |
getID()
Return the drive ID.
|
byte[] |
getRAM()
Get RAM of this floppy.
|
byte[][] |
getRAMExpand()
Is RAM expansion of this floppy.
|
boolean[] |
getRAMExpEnabled()
Is RAM expand enabled of this floppy.
|
byte[] |
getROM()
Get ROM of this floppy.
|
C1541.FloppyStatus |
getStatus()
Get a status icon to display the floppies activity.
|
boolean |
isPowerOn() |
void |
reset()
Reset normally.
|
void |
setCustomKernalRom(byte[] c1541Rom)
Set a custom Kernal ROM to be used.
|
void |
setDiskName(String diskName) |
void |
setFloppyType(FloppyType type)
Set the actual type of floppy to be used (change ROM).
|
void |
setPowerOn(boolean on)
The floppy has been turned on/off.
|
void |
setRamExpansion(int select,
boolean expand)
Enable 8K Ram expansion.
|
protected void |
signalIRQ(boolean state)
Set/clear CPU IRQ state.
|
public C1541(IECBus iecBus, int deviceID, FloppyType type)
iecBus
- IEC busdeviceID
- floppy device number (8-11)type
- C1541 or C1541-II?public final EventScheduler getEventScheduler()
public final MOS6510 getCPU()
public final VIA6522BC getBusController()
public final VIA6522DC getDiskController()
public final byte[] getRAM()
public final byte[] getROM()
public final boolean[] getRAMExpEnabled()
public final byte[][] getRAMExpand()
public final int getID()
public final void setPowerOn(boolean on)
on
- power on?public boolean isPowerOn()
public final void setFloppyType(FloppyType type)
type
- the type of the floppypublic final void setRamExpansion(int select, boolean expand)
select
- which 8KB RAM bank to expand (0-5), starting at 0x2000
increasing in 8KB steps up to 0xA000.expand
- enable 8K Ram expansionprotected void signalIRQ(boolean state)
state
- CPU IRQ statepublic final void reset()
public final void setCustomKernalRom(byte[] c1541Rom)
c1541Rom
- kernal Rom (null means default Kernal)public final C1541.FloppyStatus getStatus()
public FloppyType getFloppyType()
public String getDiskName()
public void setDiskName(String diskName)
Copyright © 2018 Ken Händel. All rights reserved.