Modifier and Type | Class and Description |
---|---|
static class |
Cartridge.CRTType
CCS64 cartridge type map
|
Modifier and Type | Field and Description |
---|---|
PLA |
pla
Instance of the system's PLA chip.
|
Modifier and Type | Method and Description |
---|---|
void |
changedBA(boolean state)
Callback to notify cartridge of current state of BA signal on the system bus.
|
void |
changedIRQ(boolean state)
Callback to notify cartridge of current state of IRQ signal on the system
bus.
|
void |
changedNMI(boolean state)
Callback to notify cartridge of current state of NMI signal on the system
bus.
|
static Cartridge |
create(PLA pla,
CartridgeType cartType,
int sizeKB)
Create a cartridge.
|
protected void |
doFreeze()
Handle pressing of the freeze button.
|
void |
freeze()
Push cartridge's "freeze" button.
|
Bank |
getIO1()
Acquire the IO1 bank
|
Bank |
getIO2()
Acquire the IO2 bank.
|
Bank |
getRomh()
Get currently active ROMH bank.
|
Bank |
getRoml()
Get currently active ROML bank.
|
Bank |
getUltimaxMemory()
In Ultimax mode, the main memory between 0x1000-0xffff is disconnected.
|
void |
installBankHooks(Bank[] cpuReadMap,
Bank[] cpuWriteMap)
If the cartridge needs to listen to write activity on specific banks, it can
install the requisite hooks into the bank here.
|
static Cartridge |
nullCartridge(PLA pla)
Return an instance of cartridge when no real cartridge is connected.
|
static Cartridge |
read(PLA pla,
CartridgeType cartType,
File file)
Load a cartridge.
|
static Cartridge |
readCRT(PLA pla,
DataInputStream is)
Load a cartridge of type CRT.
|
void |
reset()
Bring the cart to power-on state.
|
void |
setIRQ(boolean state)
Assert IRQ (= electrically pull IRQ low) on the system bus.
|
void |
setNMI(boolean state)
Assert NMI (= electrically pull NMI low) on the system bus.
|
String |
toString() |
public final PLA pla
protected Cartridge(PLA pla)
public Bank getRoml()
public Bank getRomh()
public Bank getUltimaxMemory()
public Bank getIO1()
public Bank getIO2()
public static final Cartridge create(PLA pla, CartridgeType cartType, int sizeKB) throws IOException
pla
- Instance of the system's PLA chipcartType
- cartridge typesizeKB
- size in KBIOException
public static Cartridge read(PLA pla, CartridgeType cartType, File file) throws IOException
pla
- Instance of the system's PLA chipcartType
- cartridge typefile
- file to load fromIOException
public static Cartridge readCRT(PLA pla, DataInputStream is) throws IOException
pla
- Instance of the system's PLA chipis
- input stream to load fromIOException
public void installBankHooks(Bank[] cpuReadMap, Bank[] cpuWriteMap)
cpuReadMap
- cpuWriteMap
- public static Cartridge nullCartridge(PLA pla)
public void reset()
public final void freeze()
protected void doFreeze()
public void changedNMI(boolean state)
state
- public void changedIRQ(boolean state)
state
- public void changedBA(boolean state)
state
- public void setNMI(boolean state)
state
- public void setIRQ(boolean state)
state
- Copyright © 2018 Ken Händel. All rights reserved.