mirror of
https://github.com/a2-4am/passport.git
synced 2024-05-28 21:41:27 +00:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
;-------------------------------
|
|
; #SIGCHECK
|
|
; productized extra wide track protection check
|
|
;
|
|
; tested on
|
|
; - Advanced Electricity (EME)
|
|
; - Complex Circuits (EME)
|
|
; - Projectile and Circular Motion (EME)
|
|
; - Inca (Hayden)
|
|
; - Holy Grail (Hayden)
|
|
; - The Dam Busters (Accolade)
|
|
; - Conjecture (Robert Scott)
|
|
;-------------------------------
|
|
lda gIsBoot0
|
|
bne @exit
|
|
ldy #$05
|
|
jsr SearchTrack
|
|
!byte $BD,$80,$C0; LDA $C080,X
|
|
!byte $18 ; CLC
|
|
!byte $68 ; PLA
|
|
bcs @exit ; passport-test-suite/Advanced Electricity.woz [C=0] matches
|
|
inx
|
|
inx
|
|
jsr modify1
|
|
!byte $D0 ; change indexed softswitch address so it does nothing
|
|
; now search for non-standard RWTS parameters
|
|
; conveniently listed at beginning of SIGCHECK routine
|
|
ldy #$0C
|
|
jsr SearchTrack
|
|
!byte $D5,$AA,$96
|
|
!byte WILDCARD,WILDCARD
|
|
!byte $D5,$AA,$AD
|
|
!byte WILDCARD,WILDCARD
|
|
!byte $18,$B0
|
|
bcs @exit
|
|
jsr +
|
|
jmp @exit
|
|
+ jsr ++
|
|
inx
|
|
inx
|
|
++ inx
|
|
inx
|
|
inx
|
|
jsr compare2
|
|
!byte $DE,$AA
|
|
bcc +++
|
|
; passport-test-suite/Water Pollution.woz reaches here
|
|
jsr modify2
|
|
!byte $DE,$AA
|
|
+++ rts
|
|
@exit
|