mirror of
https://github.com/a2-4am/passport.git
synced 2024-05-28 21:41:27 +00:00
39 lines
907 B
Plaintext
39 lines
907 B
Plaintext
;-------------------------------
|
|
; #SWORDTHRUST
|
|
; custom RWTS entry point at $B775 changes parameters based on track
|
|
;
|
|
; Tested on
|
|
; - Swordthrust
|
|
;-------------------------------
|
|
!zone {
|
|
; gTrack = 0
|
|
; Caller found DOS 3.3 RWTS
|
|
|
|
lda #$01
|
|
ldx #$75
|
|
ldy #(@end_swordthrust-@begin_swordthrust)
|
|
jsr compare
|
|
@begin_swordthrust
|
|
PHP
|
|
SEI
|
|
PHA
|
|
LDX $B7EC
|
|
LDA $BED0,X
|
|
EOR $B942
|
|
STA $B8FC
|
|
STA $B85D
|
|
PLA
|
|
JSR $BD00
|
|
@end_swordthrust
|
|
bcs .exit ; passport-test-suite/Swordthrust 1 The King's Testing Ground.woz [C=0] matches
|
|
jsr PrintByID
|
|
!byte s_bytrack
|
|
ldx #$81
|
|
jsr modify1
|
|
!byte $2C
|
|
ldx #$84
|
|
jsr modify1
|
|
!byte $2C
|
|
.exit
|
|
}
|