mirror of
https://github.com/a2-4am/passport.git
synced 2024-12-22 19:30:50 +00:00
Merge pull request #64 from peterferrie/master
support Battle Group secondary prot
This commit is contained in:
commit
92626d897d
@ -420,7 +420,7 @@
|
||||
ldy #1
|
||||
jsr modify
|
||||
!byte $BB ;new checksum value for eor
|
||||
jmp +
|
||||
bvc +
|
||||
++ ldy #1
|
||||
jsr compare
|
||||
!byte $DB
|
||||
|
@ -343,7 +343,7 @@
|
||||
ldy #$01
|
||||
jsr modify
|
||||
!byte $F8 ;checksum
|
||||
jmp .exit
|
||||
bvc .jmpexit
|
||||
|
||||
+ ldy #19
|
||||
jsr SearchTrack
|
||||
@ -357,7 +357,7 @@
|
||||
!byte $A9,$00 ;LDA #$00
|
||||
!byte $AA ;TAX
|
||||
!byte $9D,$00,$01 ;STA $0100,X
|
||||
bcs +
|
||||
bcs .jmpexit
|
||||
pha
|
||||
lda #s_tamper
|
||||
jsr PrintByID
|
||||
@ -368,13 +368,13 @@
|
||||
ldy #$01
|
||||
jsr modify
|
||||
!byte $19 ;checksum
|
||||
+ jmp .exit
|
||||
.jmpexit
|
||||
jmp .exit
|
||||
|
||||
.dosearch
|
||||
lda gIsBoot0
|
||||
beq +
|
||||
jmp .exit
|
||||
+ ldy #15
|
||||
bne .jmpexit
|
||||
ldy #15
|
||||
jsr SearchTrack
|
||||
!byte $CE,WILDCARD,WILDCARD ;DEC $xxxx
|
||||
!byte $EF,WILDCARD,WILDCARD ;mod->INC $xxxx
|
||||
|
@ -87,7 +87,7 @@
|
||||
ldy #2
|
||||
jsr modify
|
||||
!byte $A0,$B9
|
||||
jmp .exit
|
||||
bvc .jmpexit
|
||||
|
||||
;Threshold secondary protection
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
ldy #$01
|
||||
jsr modify
|
||||
!byte $FC
|
||||
jmp .exit
|
||||
bvc .exit
|
||||
|
||||
;Missile Defense
|
||||
|
||||
@ -132,7 +132,7 @@
|
||||
ldy #$01
|
||||
jsr modify
|
||||
!byte $2C ;LDA
|
||||
jmp .exit
|
||||
bvc .exit
|
||||
|
||||
;Cranston Manor, etc.
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
;-------------------------------
|
||||
; #SSI Weak-bit protection
|
||||
; #SSI protections
|
||||
; weak bit, magic values
|
||||
;
|
||||
; module by qkumba
|
||||
;-------------------------------
|
||||
@ -19,7 +20,7 @@
|
||||
!byte $C1,$00 ; CMP ($00,X)
|
||||
!byte $EA ; NOP
|
||||
!byte $EA ; NOP
|
||||
bcs .exit
|
||||
bcs +
|
||||
|
||||
sta gDisplayBytes
|
||||
pha
|
||||
@ -29,6 +30,21 @@
|
||||
ldy #$01
|
||||
jsr modify
|
||||
!byte $A9 ; LDA #$..
|
||||
bvc .exit
|
||||
|
||||
+
|
||||
ldy #$0E
|
||||
jsr SearchTrack
|
||||
!byte $CE,$07,$02; DEC $0207
|
||||
!byte $EF,$07,$02; ??? $0207
|
||||
!byte $A0,$27 ; LDY #$27
|
||||
!byte $D0,$02 ; BNE *+4
|
||||
!byte $00 ; BRK
|
||||
!byte $6C,$B9,$00; JMP ($00B9)
|
||||
bcs .exit
|
||||
ldy #1
|
||||
jsr modify
|
||||
!byte $60 ; RTS
|
||||
|
||||
.exit
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user