mirror of
https://github.com/a2-4am/passport.git
synced 2024-12-22 19:30:50 +00:00
Merge pull request #92 from peterferrie/master
support Sierra track-swap protection
This commit is contained in:
commit
68acfb8792
@ -7,6 +7,7 @@
|
|||||||
; Cranston Manor
|
; Cranston Manor
|
||||||
; Jawbreaker
|
; Jawbreaker
|
||||||
; Missile Defense
|
; Missile Defense
|
||||||
|
; Mission Asteroid
|
||||||
; Pegasus ][
|
; Pegasus ][
|
||||||
; Threshold
|
; Threshold
|
||||||
;
|
;
|
||||||
@ -33,6 +34,8 @@
|
|||||||
ldy #$01
|
ldy #$01
|
||||||
jsr modify
|
jsr modify
|
||||||
!byte $AD ;LDA
|
!byte $AD ;LDA
|
||||||
|
lda #$24
|
||||||
|
sta $B91E
|
||||||
.jmpexit
|
.jmpexit
|
||||||
jmp .exit
|
jmp .exit
|
||||||
|
|
||||||
@ -79,6 +82,10 @@
|
|||||||
!byte $8D,$8C,$BE ;STA $BE8C
|
!byte $8D,$8C,$BE ;STA $BE8C
|
||||||
!byte $A9,$B9 ;LDA #$B9
|
!byte $A9,$B9 ;LDA #$B9
|
||||||
!byte $8D,$8D,$BE ;STA $BE8D
|
!byte $8D,$8D,$BE ;STA $BE8D
|
||||||
|
lda #<.swaptrk
|
||||||
|
sta $BE7D
|
||||||
|
lda #>.swaptrk
|
||||||
|
sta $BE7E
|
||||||
++ pla
|
++ pla
|
||||||
clc
|
clc
|
||||||
adc #$48
|
adc #$48
|
||||||
@ -89,6 +96,21 @@
|
|||||||
!byte $A0,$B9
|
!byte $A0,$B9
|
||||||
bvc .jmpexit
|
bvc .jmpexit
|
||||||
|
|
||||||
|
.swaptrk
|
||||||
|
ldy $478
|
||||||
|
cpy #$c0
|
||||||
|
beq .swapped
|
||||||
|
cmp #2
|
||||||
|
bne .try4
|
||||||
|
asl
|
||||||
|
bne .swapped
|
||||||
|
.try4
|
||||||
|
cmp #4
|
||||||
|
bne .swapped
|
||||||
|
lsr
|
||||||
|
.swapped
|
||||||
|
jmp $BA1E
|
||||||
|
|
||||||
;Threshold secondary protection
|
;Threshold secondary protection
|
||||||
|
|
||||||
+ ldy #11
|
+ ldy #11
|
||||||
|
@ -280,7 +280,7 @@ StringTableHigh
|
|||||||
; can be set directly before calling PrintByID.
|
; can be set directly before calling PrintByID.
|
||||||
;
|
;
|
||||||
.header
|
.header
|
||||||
!text "Passport by 4am 2019-07-25",$00
|
!text "Passport by 4am 2019-08-08",$00
|
||||||
.mainmenu
|
.mainmenu
|
||||||
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D
|
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D
|
||||||
!text " "
|
!text " "
|
||||||
|
Loading…
Reference in New Issue
Block a user