From f84b9f5e8e967093bd443047b7b4627d55454220 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Fri, 24 Feb 2017 10:00:31 -0800 Subject: [PATCH 1/2] fix unreachable code, add more LC tests --- audit/langcard.asm | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/audit/langcard.asm b/audit/langcard.asm index 1283462..55428ec 100644 --- a/audit/langcard.asm +++ b/audit/langcard.asm @@ -29,10 +29,10 @@ LANGCARDTESTS_NO_CHECK: +prerred sec rts - lda #$33 -+ sta $FE1F ; FE1F is $60 in Apple II/plus/e/enhanced ++ lda #$33 + sta $FE1F ; FE1F is $60 in Apple II/plus/e/enhanced cmp $FE1F - beq .dotest + beq + +prerr $0005 ;; E0005: We tried to put the language card into read RAM, write RAM, but failed to write. !text "CANNOT WRITE TO LC RAM" +prerred @@ -49,6 +49,24 @@ LANGCARDTESTS_NO_CHECK: +prerred sec rts ++ lda $C08B ; Read and write bank 1 with single access (only one needed if banked in already) + lda #$11 + cmp $D17B + beq + + +prerr $000D ;; E000D: We tried to put the language card into read bank 1, but failed to read. + !text "CANNOT READ FROM LC BANK 1 RAM" + +prerred + sec + rts ++ lda $C081 ; Read ROM with single access (only one needed to bank out) + lda #$53 + cmp $D17B + beq .dotest + +prerr $000E ;; E000E: We tried to put the language card into read ROM, but failed to read. + !text "CANNOT READ FROM ROM" + +prerred + sec + rts ;; Parameterized tests From adb76304ccf69da5687edc97cc95e61728ce1992 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Fri, 24 Feb 2017 12:41:59 -0800 Subject: [PATCH 2/2] include the new errors --- v0/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v0/index.md b/v0/index.md index 6729e0d..6856d5b 100644 --- a/v0/index.md +++ b/v0/index.md @@ -47,3 +47,11 @@ This is a the Cxxx-ROM check part of the auxiliary memory data-driven test (see ## E000C $400 main memory and $300 aux memory seem to write to the same place, which is probably an emulator bug. + +## E000D + +We tried to put the language card into read bank 1, but failed to read. + +## E000E + +We tried to put the language card into read ROM, but failed to read.