EA, Sierra: mark anti-tamper points

This commit is contained in:
Peter Ferrie 2018-01-29 09:59:11 -08:00
parent 62f33b3428
commit 85d776157f
2 changed files with 40 additions and 0 deletions

View File

@ -104,6 +104,8 @@
!byte $0F,$F5,$70 ;BNE $a9f6 !byte $0F,$F5,$70 ;BNE $a9f6
bcs + bcs +
pha pha
lda #s_tamper
jsr PrintByID
txa txa
adc #7 adc #7
tax tax
@ -132,6 +134,8 @@
!byte $60 ;RTS !byte $60 ;RTS
bcs + bcs +
pha pha
lda #s_tamper
jsr PrintByID
txa txa
adc #11 adc #11
tax tax
@ -150,6 +154,8 @@
!byte $0F,$78,$60 ;BNE $B97B !byte $0F,$78,$60 ;BNE $B97B
bcs + bcs +
pha pha
lda #s_tamper
jsr PrintByID
txa txa
adc #11 adc #11
tax tax
@ -167,6 +173,10 @@
!byte $20,$67,$67 ;JSR $6767 !byte $20,$67,$67 ;JSR $6767
!byte $20,$AA,$BF ;JSR $BFAA !byte $20,$AA,$BF ;JSR $BFAA
bcs + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
inx inx
inx inx
@ -183,6 +193,10 @@
!byte $C9,$52 ;CMP #$52 !byte $C9,$52 ;CMP #$52
!byte $F0,$03 ;BEQ +$03 !byte $F0,$03 ;BEQ +$03
bcs + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
inx inx
inx inx
@ -199,6 +213,10 @@
!byte $C9,$52 ;CMP #$52 !byte $C9,$52 ;CMP #$52
!byte $D0,$DB ;BNE -$DB !byte $D0,$DB ;BNE -$DB
bcs + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
inx inx
inx inx
@ -342,6 +360,10 @@
!byte $E9,$00 ;SBC #$00 !byte $E9,$00 ;SBC #$00
!byte $48 ;PHA !byte $48 ;PHA
bcs + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
ldy #1 ldy #1
jsr modify jsr modify
@ -358,6 +380,8 @@
!byte $F0 !byte $F0
bcs + bcs +
pha pha
lda #s_tamper
jsr PrintByID
txa txa
adc #12 adc #12
tax tax
@ -379,6 +403,8 @@
!byte $07,$AB ;CMP #$e7 !byte $07,$AB ;CMP #$e7
bcs .exit bcs .exit
pha pha
lda #s_tamper
jsr PrintByID
txa txa
adc #24 adc #24
tax tax

View File

@ -85,6 +85,10 @@
!byte $C9,$1D ;CMP #$1D !byte $C9,$1D ;CMP #$1D
!byte $B0 ;BCS *+xx !byte $B0 ;BCS *+xx
bcs + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
inx inx
inx inx
@ -309,6 +313,8 @@ patchstyle
!byte $95,$00 ;STA $00,X !byte $95,$00 ;STA $00,X
bcs + bcs +
pha pha
lda #s_tamper
jsr PrintByID
txa txa
adc #9 adc #9
tax tax
@ -326,6 +332,10 @@ patchstyle
!byte $AA ;TAX !byte $AA ;TAX
!byte $95,$00 ;STA $00,X !byte $95,$00 ;STA $00,X
+ bcs + + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
inx inx
inx inx
@ -347,6 +357,10 @@ patchstyle
!byte $AA ;TAX !byte $AA ;TAX
!byte $9D,$00,$01 ;STA $0100,X !byte $9D,$00,$01 ;STA $0100,X
bcs + bcs +
pha
lda #s_tamper
jsr PrintByID
pla
inx inx
inx inx
inx inx