passport/src/patchers/tsr.a
2021-06-21 10:33:16 -04:00

39 lines
885 B
Plaintext

;-------------------------------
; #TSR
; RWTS changes per track based on
; contents of F8 ROM (no, really)
;
; tested on
; - Dawn Patrol
; - Dungeon
; - Theseus and the Minotaur
;-------------------------------
!zone {
lda gIsTSR
bne .exit
ldx gTrack
cpx #$04
bne .exit
lda #$0B
ldx #$A0
ldy #$0A
jsr compare ; if T04,S0B,$A0 ==
!byte $A9,$C8
!byte $8D,$8C,$BE
!byte $A9,$BF
!byte $8D,$8D,$BE
bcs .exit ; passport-test-suite/Dawn Patrol.woz [C=0] here
jsr PrintByID
!byte s_bytrack
ldx #$A2
jsr modify1 ; then set T04,S0B,$A2 =
!byte $2C
ldx #$A7
jsr modify1 ; and set T04,S0B,$A7 =
!byte $2C
.exit
}