Add Aux LC test

This commit is contained in:
Badvision 2024-08-15 08:58:38 -05:00
parent 2304eaab30
commit afebe4d56f
2 changed files with 21 additions and 7 deletions

View File

@ -194,7 +194,7 @@ public class MemoryTest {
* @throws ProgramException
*/
@Test
public void machineIdentificationTEst() throws ProgramException {
public void machineIdentificationTest() throws ProgramException {
TestProgram memoryDetectTestProgram = new TestProgram(MEMORY_TEST_COMMONS);
memoryDetectTestProgram.add(MACHINE_IDENTIFICATION);
// Assert this is an Apple //e
@ -500,6 +500,17 @@ public class MemoryTest {
!byte $23, $34, $11, $23, $34
!byte 0
""")
.runForTicks(10000000);
// .runForTicks(10000000);
.run();
}
@Test
public void auxLanguageCardTest() throws ProgramException {
// This is a repeat of the LC test but with AUX enabled
SoftSwitches.AUXZP.getSwitch().setState(true);
SoftSwitches.RAMRD.getSwitch().setState(true);
SoftSwitches.RAMWRT.getSwitch().setState(true);
SoftSwitches._80STORE.getSwitch().setState(true);
languageCardBankswitchTest();
}
}

View File

@ -188,15 +188,18 @@ RESETALL
sta CSW
lda #>COUT1
sta CSW+1
sta RESET_RAMRD
sta RESET_RAMWRT
; Zelly's original test resets flags, but we might want to test with flags set.
; So only reset softswitches that don't affect memory state.
; Anyway, our @before setup function does this part already.
;sta RESET_RAMRD
;sta RESET_RAMWRT
;; Save return address in X and A, in case we switch zero-page memory.
sta RESET_80STORE
;sta RESET_80STORE
sta RESET_INTCXROM
sta RESET_ALTZP
;sta RESET_ALTZP
sta RESET_SLOTC3ROM
sta RESET_INTC8ROM
sta RESET_80COL
;sta RESET_80COL
sta RESET_ALTCHRSET
sta SET_TEXT
sta RESET_MIXED