add Trillium patcher for Nine Princes in Amber and Perry Mason

This commit is contained in:
4am 2018-09-22 23:00:24 -04:00
parent 0175335383
commit fd4eb96d71
3 changed files with 44 additions and 1 deletions

View File

@ -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

42
src/patchers/trillium2.a Normal file
View File

@ -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
}

View File

@ -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 " "