From ec9d512062e7c61d12a11b3b91a3f966ca8b7fec Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Wed, 8 Mar 2017 07:28:30 -0800 Subject: [PATCH] support Realm of Impossibility --- src/passport.a | 2 +- src/patchers/ea.a | 21 ++++++++++++++++++++- src/strings/en.a | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/passport.a b/src/passport.a index a884a01..e33a7ed 100755 --- a/src/passport.a +++ b/src/passport.a @@ -94,7 +94,7 @@ flag = $FF ; byte } ; Application constants (not zero addresses) -RELBASE = $6700 ; address to move Passport code +RELBASE = $6600 ; address to move Passport code ; so that it's out of the way LOWPOINT = $4300 ; lowest available address for code BASEPAGE = $10 ; Special Delivery tracer assumes diff --git a/src/patchers/ea.a b/src/patchers/ea.a index 6605e38..a2f72e6 100644 --- a/src/patchers/ea.a +++ b/src/patchers/ea.a @@ -298,12 +298,31 @@ _ea !byte $18 ;CLC !byte $E9,$00 ;SBC #$00 !byte $48 ;PHA - bcs .exit + bcs + inx ldy #1 jsr modify !byte $E8 ;new checksum value for eor ++ ldy #14 + jsr SearchTrack + !byte $AD,$00,$05 + !byte $A2,$FF + !byte $5D,$00,$05 + !byte $CA + !byte $D0,$FA + !byte $C9,$A0 + !byte $F0 + bcs .exit + pha + txa + adc #12 + tax + pla + ldy #1 + jsr modify + !byte $A1 ;new checksum value for eor + .dostitles lda gIsBoot0 bne .exit diff --git a/src/strings/en.a b/src/strings/en.a index 7bfafd1..014a10e 100755 --- a/src/strings/en.a +++ b/src/strings/en.a @@ -192,7 +192,7 @@ StringTable ; can be set directly before calling PrintByID. ; .header - !text "Passport by 4am 2017-03-04",00 + !text "Passport by 4am 2017-03-08",00 .mainmenu !text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D !text " "