Merge pull request #92 from peterferrie/master

support Sierra track-swap protection
This commit is contained in:
4am 2019-08-09 13:36:18 -04:00 committed by GitHub
commit 68acfb8792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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 " "