Merge pull request #1 from peterferrie/master

fix unreachable code, add more LC tests
This commit is contained in:
Zellyn Hunter 2017-02-24 21:14:55 -05:00 committed by GitHub
commit 1f7c0a7eb7
2 changed files with 29 additions and 3 deletions

View File

@ -29,10 +29,10 @@ LANGCARDTESTS_NO_CHECK:
+prerred +prerred
sec sec
rts rts
lda #$33 + lda #$33
+ sta $FE1F ; FE1F is $60 in Apple II/plus/e/enhanced sta $FE1F ; FE1F is $60 in Apple II/plus/e/enhanced
cmp $FE1F cmp $FE1F
beq .dotest beq +
+prerr $0005 ;; E0005: We tried to put the language card into read RAM, write RAM, but failed to write. +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" !text "CANNOT WRITE TO LC RAM"
+prerred +prerred
@ -49,6 +49,24 @@ LANGCARDTESTS_NO_CHECK:
+prerred +prerred
sec sec
rts 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 ;; Parameterized tests

View File

@ -47,3 +47,11 @@ This is a the Cxxx-ROM check part of the auxiliary memory data-driven test (see
## E000C ## E000C
$400 main memory and $300 aux memory seem to write to the same place, which is probably an emulator bug. $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.