mirror of
https://github.com/badvision/jace.git
synced 2024-12-28 11:31:50 +00:00
Add Aux LC test
This commit is contained in:
parent
2304eaab30
commit
afebe4d56f
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user