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
; Jawbreaker
; Missile Defense
; Mission Asteroid
; Pegasus ][
; Threshold
;
@ -33,6 +34,8 @@
ldy #$01
jsr modify
!byte $AD ;LDA
lda #$24
sta $B91E
.jmpexit
jmp .exit
@ -79,6 +82,10 @@
!byte $8D,$8C,$BE ;STA $BE8C
!byte $A9,$B9 ;LDA #$B9
!byte $8D,$8D,$BE ;STA $BE8D
lda #<.swaptrk
sta $BE7D
lda #>.swaptrk
sta $BE7E
++ pla
clc
adc #$48
@ -89,6 +96,21 @@
!byte $A0,$B9
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
+ ldy #11

View File

@ -280,7 +280,7 @@ StringTableHigh
; can be set directly before calling PrintByID.
;
.header
!text "Passport by 4am 2019-07-25",$00
!text "Passport by 4am 2019-08-08",$00
.mainmenu
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D,$8D
!text " "