mirror of
https://github.com/a2-4am/passport.git
synced 2024-05-28 21:41:27 +00:00
39 lines
885 B
Plaintext
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
|
|
}
|