add support for CMP/NOP/NOP protection (log-only)

This commit is contained in:
4am 2020-07-22 11:38:25 -04:00
parent 5e59b0f288
commit 74f8e8b93f
3 changed files with 28 additions and 2 deletions

View File

@ -119,5 +119,25 @@
jsr PrintByID jsr PrintByID
inc gPatchCount inc gPatchCount
.endbne0 .endbne0
;-------------------------------
; RWTS "CMP / NOP NOP" identification
; disk allows any value for
; for the second address epilogue nibble
;-------------------------------
lda #$03
sta gDisplayBytes
ldx #$95
ldy #$09
jsr compare ; if T00,S03,$95 ==
!byte $BD,$8C,$C0
!byte $10,$FB
!byte $C9,$AA
!byte $EA,$EA
bcs .endnopnop ; passport-test-suite/La Guillotine.woz [C=0] matches
lda #s_cmpnopnop
jsr PrintByID
inc gPatchCount
.endnopnop
.exit .exit
} }

View File

@ -134,6 +134,7 @@ StringTableLow
!byte <.choplifter !byte <.choplifter
!byte <.pdi !byte <.pdi
!byte <.sve !byte <.sve
!byte <.cmpnopnop
StringTableHigh StringTableHigh
!byte >.header !byte >.header
@ -254,6 +255,7 @@ StringTableHigh
!byte >.choplifter !byte >.choplifter
!byte >.pdi !byte >.pdi
!byte >.sve !byte >.sve
!byte >.cmpnopnop
; ;
; Text can contain substitution strings, which ; Text can contain substitution strings, which
@ -280,7 +282,7 @@ StringTableHigh
; can be set directly before calling PrintByID. ; can be set directly before calling PrintByID.
; ;
.header .header
!text "Passport by 4am 2020-07-20",$00 !text "Passport by 4am 2020-07-22",$00
.mainmenu .mainmenu
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D !text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D
!text " " !text " "
@ -534,6 +536,9 @@ StringTableHigh
.cmpbne0 .cmpbne0
!text "T%t,S%0 RWTS accepts any value for the",$8D !text "T%t,S%0 RWTS accepts any value for the",$8D
!text "first address epilogue nibble.",$8D,$00 !text "first address epilogue nibble.",$8D,$00
.cmpnopnop
!text "T%t,S%0 RWTS accepts any value for the",$8D
!text "second address epilogue nibble.",$8D,$00
.writeram .writeram
!text "Writing to RAM disk",$8D,$00 !text "Writing to RAM disk",$8D,$00
.d5timing .d5timing

View File

@ -120,4 +120,5 @@ s_e7everywhere=$72
s_choplifter = $73 s_choplifter = $73
s_pdi = $74 s_pdi = $74
s_sve = $75 s_sve = $75
STRINGCOUNT = $76 s_cmpnopnop = $76
STRINGCOUNT = $77