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 lda #s_tamper
jsr PrintByID jsr PrintByID
txa txa
clc
adc #7 adc #7
tax tax
adc #4 adc #4
@ -155,6 +156,7 @@
lda #s_tamper lda #s_tamper
jsr PrintByID jsr PrintByID
txa txa
clc
adc #11 adc #11
tax tax
pla pla
@ -176,6 +178,7 @@
lda #s_tamper lda #s_tamper
jsr PrintByID jsr PrintByID
txa txa
clc
adc #11 adc #11
tax tax
pla pla
@ -390,6 +393,7 @@
lda #s_tamper lda #s_tamper
jsr PrintByID jsr PrintByID
txa txa
clc
adc #12 adc #12
tax tax
pla pla
@ -414,12 +418,13 @@
lda #s_tamper lda #s_tamper
jsr PrintByID jsr PrintByID
txa txa
clc
adc #24 adc #24
tax tax
pla pla
ldy #1 ldy #1
jsr compare jsr compare
!byte $AB !byte $AB ;Last Gladiator
bcs ++ bcs ++
ldy #1 ldy #1
jsr modify jsr modify
@ -427,7 +432,7 @@
bvc + bvc +
++ ldy #1 ++ ldy #1
jsr compare jsr compare
!byte $DB !byte $D4 ;Arctic Fox, PHM Pegasus
bcs ++ bcs ++
ldy #1 ldy #1
jsr modify jsr modify
@ -440,6 +445,13 @@
ldy #1 ldy #1
jsr modify jsr modify
!byte $2D ;new checksum value for eor !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 + ldy #23
@ -539,6 +551,7 @@
lda #s_tamper lda #s_tamper
jsr PrintByID jsr PrintByID
txa txa
clc
adc #25 adc #25
tax tax
pla pla

View File

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

View File

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