public class MagicDesk extends Cartridge
"Magic Desk" Cartridge - this cart comes in 3 sizes, 32Kb, 64Kb and 128Kb. - ROM is always mapped in at $8000-$9FFF. - 1 register at io1 / de00: bit 0-5 bank number bit 7 exrom (1 = cart disabled)
Cartridge.CRTType
Modifier and Type | Field and Description |
---|---|
protected int |
currentRomBank
Currently active ROM bank.
|
protected byte[][] |
romLBanks
ROML banks 0..3 (each of size 0x2000).
|
Constructor and Description |
---|
MagicDesk(DataInputStream dis,
PLA pla) |
Modifier and Type | Method and Description |
---|---|
Bank |
getIO1()
Acquire the IO1 bank
|
Bank |
getRoml()
Get currently active ROML bank.
|
void |
reset()
Bring the cart to power-on state.
|
changedBA, changedIRQ, changedNMI, create, doFreeze, freeze, getIO2, getRomh, getUltimaxMemory, installBankHooks, nullCartridge, read, readCRT, setIRQ, setNMI, toString
protected int currentRomBank
protected final byte[][] romLBanks
public MagicDesk(DataInputStream dis, PLA pla) throws IOException
IOException
Copyright © 2018 Ken Händel. All rights reserved.