avoid Flobynoid anti-tamper

This commit is contained in:
Peter Ferrie 2022-06-26 14:53:50 -07:00
parent 55946907c2
commit 99d85a74a5

View File

@ -19,10 +19,10 @@
ldx #hook_e-hook_b ldx #hook_e-hook_b
- lda hook_b, x - lda hook_b, x
sta $2d0, x sta $2c8, x
dex dex
bpl - bpl -
lda #$d0 lda #$c8
sta $B6D6 sta $B6D6
lda #2 lda #2
sta $B6D7 sta $B6D7
@ -34,7 +34,7 @@
inc $3F4 ; reboot inc $3F4 ; reboot
jmp $8003 jmp $8003
hook_b !pseudopc $2d0 { hook_b !pseudopc $2c8 {
pla pla
pla pla
jsr $B64F jsr $B64F
@ -51,6 +51,10 @@ hook_b !pseudopc $2d0 {
cmp #$EE cmp #$EE
bne + bne +
stx $1893 ; patch - don't increase lives stx $1893 ; patch - don't increase lives
lda $B088
eor #$0D
bne +
sta $B088 ; patch - don't trigger anti-tamper
+ clc + clc
rts rts
!if * > $2FF { !if * > $2FF {