forked from Apple-2-Tools/jace
Using more readable variations of switch read methods (no functional difference, and Airheart isn't crashing so it must be okay still!)
This commit is contained in:
parent
913d2c654f
commit
67e1d9e1f1
@ -97,29 +97,29 @@ abstract public class RAM128k extends RAM {
|
|||||||
for (int i = 0x0c0; i < 0x0d0; i++) {
|
for (int i = 0x0c0; i < 0x0d0; i++) {
|
||||||
activeWrite.set(i, null);
|
activeWrite.set(i, null);
|
||||||
}
|
}
|
||||||
if (SoftSwitches.LCRAM.getState()) {
|
if (SoftSwitches.LCRAM.isOn()) {
|
||||||
if (!SoftSwitches.AUXZP.getState()) {
|
if (SoftSwitches.AUXZP.isOff()) {
|
||||||
activeRead.fillBanks(languageCard);
|
activeRead.fillBanks(languageCard);
|
||||||
if (!SoftSwitches.LCBANK1.getState()) {
|
if (SoftSwitches.LCBANK1.isOff()) {
|
||||||
activeRead.fillBanks(languageCard2);
|
activeRead.fillBanks(languageCard2);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
activeRead.fillBanks(getAuxLanguageCard());
|
activeRead.fillBanks(getAuxLanguageCard());
|
||||||
if (!SoftSwitches.LCBANK1.getState()) {
|
if (SoftSwitches.LCBANK1.isOff()) {
|
||||||
activeRead.fillBanks(getAuxLanguageCard2());
|
activeRead.fillBanks(getAuxLanguageCard2());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SoftSwitches.LCWRITE.getState()) {
|
if (SoftSwitches.LCWRITE.isOn()) {
|
||||||
if (!SoftSwitches.AUXZP.getState()) {
|
if (SoftSwitches.AUXZP.isOff()) {
|
||||||
activeWrite.fillBanks(languageCard);
|
activeWrite.fillBanks(languageCard);
|
||||||
if (!SoftSwitches.LCBANK1.getState()) {
|
if (SoftSwitches.LCBANK1.isOff()) {
|
||||||
activeWrite.fillBanks(languageCard2);
|
activeWrite.fillBanks(languageCard2);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
activeWrite.fillBanks(getAuxLanguageCard());
|
activeWrite.fillBanks(getAuxLanguageCard());
|
||||||
if (!SoftSwitches.LCBANK1.getState()) {
|
if (SoftSwitches.LCBANK1.isOff()) {
|
||||||
activeWrite.fillBanks(getAuxLanguageCard2());
|
activeWrite.fillBanks(getAuxLanguageCard2());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -181,7 +181,7 @@ abstract public class RAM128k extends RAM {
|
|||||||
// Enable C3 to point to internal ROM
|
// Enable C3 to point to internal ROM
|
||||||
activeRead.setBanks(2, 1, 0x0C3, cPageRom);
|
activeRead.setBanks(2, 1, 0x0C3, cPageRom);
|
||||||
}
|
}
|
||||||
if (SoftSwitches.INTC8ROM.getState()) {
|
if (SoftSwitches.INTC8ROM.isOn()) {
|
||||||
// Enable C8-CF to point to internal ROM
|
// Enable C8-CF to point to internal ROM
|
||||||
activeRead.setBanks(7, 8, 0x0C8, cPageRom);
|
activeRead.setBanks(7, 8, 0x0C8, cPageRom);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user