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
inc gPatchCount
.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
}

View File

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

View File

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