From fd4eb96d71c1b2d3be0488537832fbce2b9be63c Mon Sep 17 00:00:00 2001 From: 4am Date: Sat, 22 Sep 2018 23:00:24 -0400 Subject: [PATCH] add Trillium patcher for Nine Princes in Amber and Perry Mason --- src/passport.a | 1 + src/patchers/trillium2.a | 42 ++++++++++++++++++++++++++++++++++++++++ src/strings/en.a | 2 +- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/patchers/trillium2.a diff --git a/src/passport.a b/src/passport.a index 87f9cf1..7893843 100755 --- a/src/passport.a +++ b/src/passport.a @@ -790,6 +790,7 @@ _applyToAll !source "patchers/ssprot.a" ; gIsF7F6 only !source "patchers/f7f6.a" ; gIsF7F6 only !source "patchers/trillium.a" ; gIsTrillium only + !source "patchers/trillium2.a" ; T17 only !source "patchers/advent.a" ; gIsAdvent only !source "patchers/davidsonforth.a" ; gIsDavidson only !source "patchers/davidsonasm.a" ; gIsDavidson only diff --git a/src/patchers/trillium2.a b/src/patchers/trillium2.a new file mode 100644 index 0000000..d7463f3 --- /dev/null +++ b/src/patchers/trillium2.a @@ -0,0 +1,42 @@ +;------------------------------- +; #TRILLIUM2 +; +; tested on +; Nine Princes of Amber +; Perry Mason +;------------------------------- +!zone { + bit gMode ; nothing to do here in verify-only mode + bpl .exit + lda gTrack + cmp #$17 + bne .exit + lda #$0C + ldx #$C1 + ldy #$09 + jsr compare + !byte $A2,$A7 + !byte $A0,$19 + !byte $20,$2D,$F1 + !byte $C9,$00 + bcs .exit + sta gDisplayBytes + pha + lda #s_trillium + jsr PrintByID + pla + inx + inx + inx + inx + ldy #$01 + jsr modify + !byte $2C ; BIT + inx + inx + inx + ldy #$01 + jsr modify + !byte $A9 ; LDA +.exit +} diff --git a/src/strings/en.a b/src/strings/en.a index 9004143..f85f9e9 100755 --- a/src/strings/en.a +++ b/src/strings/en.a @@ -144,7 +144,7 @@ StringTable ; can be set directly before calling PrintByID. ; .header - !text "Passport by 4am 2018-08-14",$00 + !text "Passport by 4am 2018-09-22",$00 .mainmenu !text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D !text " "