From 8113c31805b60e21ed466d11ba6cb4d62f451dac Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Wed, 28 Aug 2019 14:34:33 -0700 Subject: [PATCH] support One-on-One --- src/patchers/ea.a | 49 ++++++++++++++++++++++++++++++++++++++++++++++- src/strings/en.a | 2 +- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/src/patchers/ea.a b/src/patchers/ea.a index 094218f..642febd 100644 --- a/src/patchers/ea.a +++ b/src/patchers/ea.a @@ -513,7 +513,7 @@ !byte $5C,$0D !byte $5E,$00 !byte $5E,$0D - bcs .exit + bcs + sta gDisplayBytes pha lda #s_tamper @@ -525,6 +525,53 @@ jsr modify !byte $F0 ;new checksum value for eor ++ ldy #23 + jsr SearchTrack + !byte $03,$4C ;LDI #$00 + !byte $07,$E1,$66 ;STA $bfe2 + !byte $04,$CC,$64 ;JSRA $bdcf + !byte $04,$CC,$64 ;JSRA $bdcf + !byte $04,$CC,$64 ;JSRA $bdcf + !byte $04,$CC,$64 ;JSRA $bdcf + !byte $05,$EB,$19 ;LDA $c0e8 + !byte $05,$E1,$66 ;LDA $bfe2 + bcs + + pha + txa + adc #21 + tax + pla + ldy #1 + jsr modify + !byte $E0 ;lda from known-zero instead + ++ ldy #14 + jsr SearchTrack + !byte $A9,$BD ;LDA #$BD + !byte $A0,$00 ;LDY #$00 + !byte $51,$97 ;EOR ($97),Y + !byte $18 ;CLC + !byte $71,$97 ;ADC ($97),Y + !byte $C8 ;INY + !byte $D0,$F8 ;BNE $8111 + !byte $E6,$98 ;INC $98 + bcs + + sta gDisplayBytes + pha + lda #s_tamper + jsr PrintByID + txa + adc #25 + tax + pla + ldy #1 + jsr compare + !byte $4C + bcs + + ldy #1 + jsr modify + !byte $2C ;jmp to bit + + .dostitles diff --git a/src/strings/en.a b/src/strings/en.a index 8f76197..ae3dc2e 100755 --- a/src/strings/en.a +++ b/src/strings/en.a @@ -280,7 +280,7 @@ StringTableHigh ; can be set directly before calling PrintByID. ; .header - !text "Passport by 4am 2019-08-27",$00 + !text "Passport by 4am 2019-08-28",$00 .mainmenu !text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D !text " "