mirror of
https://github.com/badvision/jace.git
synced 2024-11-28 10:52:33 +00:00
Add Aux LC test
This commit is contained in:
parent
2304eaab30
commit
afebe4d56f
@ -194,7 +194,7 @@ public class MemoryTest {
|
|||||||
* @throws ProgramException
|
* @throws ProgramException
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void machineIdentificationTEst() throws ProgramException {
|
public void machineIdentificationTest() throws ProgramException {
|
||||||
TestProgram memoryDetectTestProgram = new TestProgram(MEMORY_TEST_COMMONS);
|
TestProgram memoryDetectTestProgram = new TestProgram(MEMORY_TEST_COMMONS);
|
||||||
memoryDetectTestProgram.add(MACHINE_IDENTIFICATION);
|
memoryDetectTestProgram.add(MACHINE_IDENTIFICATION);
|
||||||
// Assert this is an Apple //e
|
// Assert this is an Apple //e
|
||||||
@ -500,6 +500,17 @@ public class MemoryTest {
|
|||||||
!byte $23, $34, $11, $23, $34
|
!byte $23, $34, $11, $23, $34
|
||||||
!byte 0
|
!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
|
sta CSW
|
||||||
lda #>COUT1
|
lda #>COUT1
|
||||||
sta CSW+1
|
sta CSW+1
|
||||||
sta RESET_RAMRD
|
; Zelly's original test resets flags, but we might want to test with flags set.
|
||||||
sta RESET_RAMWRT
|
; 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.
|
;; 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_INTCXROM
|
||||||
sta RESET_ALTZP
|
;sta RESET_ALTZP
|
||||||
sta RESET_SLOTC3ROM
|
sta RESET_SLOTC3ROM
|
||||||
sta RESET_INTC8ROM
|
sta RESET_INTC8ROM
|
||||||
sta RESET_80COL
|
;sta RESET_80COL
|
||||||
sta RESET_ALTCHRSET
|
sta RESET_ALTCHRSET
|
||||||
sta SET_TEXT
|
sta SET_TEXT
|
||||||
sta RESET_MIXED
|
sta RESET_MIXED
|
||||||
|
Loading…
Reference in New Issue
Block a user