fix more EA tamper checks

This commit is contained in:
Peter Ferrie 2021-04-29 13:46:53 -07:00
parent ef666f7b43
commit c475e8597c
3 changed files with 17 additions and 2 deletions

View File

@ -124,6 +124,7 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #7
tax
adc #4
@ -155,6 +156,7 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #11
tax
pla
@ -176,6 +178,7 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #11
tax
pla
@ -390,6 +393,7 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #12
tax
pla
@ -414,12 +418,13 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #24
tax
pla
ldy #1
jsr compare
!byte $AB
!byte $AB ;Last Gladiator
bcs ++
ldy #1
jsr modify
@ -427,7 +432,7 @@
bvc +
++ ldy #1
jsr compare
!byte $DB
!byte $D4 ;Arctic Fox, PHM Pegasus
bcs ++
ldy #1
jsr modify
@ -440,6 +445,13 @@
ldy #1
jsr modify
!byte $2D ;new checksum value for eor
++ ldy #1
jsr compare
!byte $DB ;Adventure Construction Set, Archon, Marble Madness, Bard's Tale
bcs ++
ldy #1
jsr modify
!byte $D4 ;new checksum value for eor
++
+ ldy #23
@ -539,6 +551,7 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #25
tax
pla

View File

@ -316,6 +316,7 @@
lda #s_tamper
jsr PrintByID
txa
clc
adc #5
tax
pla

View File

@ -18,6 +18,7 @@ cd ..\..\build
cd ..\src\mods
%ACME% -r ..\..\build\t00only.lst t00only.a
cd ..\..\build
2>nul del vars.a
%EXOMIZER% mem -lnone -q -P23 -f t00only.bin@0x2000 -o t00only.pak
cd ..\src
2>..\build\out.txt %ACME% -DFORWARD_DECRUNCHING=1 passport.a