patcher cleanup

This commit is contained in:
4am 2017-05-04 11:14:20 -04:00
parent 3ad2c545c6
commit bfd74e50e7
15 changed files with 48 additions and 50 deletions

View File

@ -5,7 +5,6 @@
; e.g. Game Frame One, Game Frame Two
;-------------------------------
!zone {
_a5count
lda gIsPascal ; only ever seen this protection
bne .exit ; on Pascal disks

View File

@ -4,7 +4,6 @@
; e.g. The Secrets of Science Island
;-------------------------------
!zone {
_a6bc95
lda gIsPascal ; only ever seen this protection
bne .exit ; on Pascal disks

View File

@ -9,7 +9,6 @@
; e.g. Dino Dig, Make A Face
;-------------------------------
!zone {
_bademu
lda gIsRWTS ; if DOS 3.3 RWTS
bne .exit
lda #$03

View File

@ -9,7 +9,6 @@
; e.g. Dinosaur Days
;-------------------------------
!zone {
_bademu2
lda gIsRWTS ; if DOS 3.3 RWTS
bne .exit
lda #$03

View File

@ -5,7 +5,6 @@
; after a certain number of boots
;-------------------------------
!zone {
_bootcounter
lda gTrack
cmp #$01
bne .exit

View File

@ -7,7 +7,6 @@
; Border Software
;-------------------------------
!zone {
_border
lda gIsBoot0 ; if DOS 3.3 boot0 loader
bne .exit
lda gIsBoot1 ; and DOS 3.3 boot1 loader

View File

@ -13,7 +13,6 @@
; position for it to start.
;-------------------------------
!zone {
_c9ff
ldy #$1A
jsr SearchTrack
!byte $A8 ; TAY

View File

@ -4,7 +4,6 @@
; if protection check fails
;-------------------------------
!zone {
corrupter
lda #$0F
sta .sector+1
.sector lda #$FF ; modified at runtime

View File

@ -6,7 +6,6 @@
; (Ace Detective, Robomath, Fraction-oids)
;-------------------------------
!zone {
_d5d5f7
ldy #$20
jsr SearchTrack
!byte $BD,$8C,$C0; LDA $C08C,X

View File

@ -10,7 +10,6 @@
; Mystery of the Witch's Shoes
;-------------------------------
!zone {
_davidbb03
lda #$00
ldx #$00
ldy #$38

View File

@ -4,7 +4,6 @@
; DOS from loading
;-------------------------------
!zone {
_diskvol
lda gIsRWTS ; if DOS 3.3 RWTS
bne .exit
lda #$01
@ -13,36 +12,34 @@ _diskvol
jsr compare ; and T00,S01,$EE ==
!byte $FB
bcs .exit
lda #$01
ldx #$FB
ldy #$04
jsr compare ; and T00,S01,$FB ==
!byte $00,$01,$EF,$D8
bcs .exit
lda #$08
ldx #$10
ldy #$05
jsr compare ; and T00,S08,$10 ==
!byte $A0,$03,$B1,$48,$48
bcs .exit
lda #$01
ldx #$EB
ldy #$01
jsr compare ; and T00,S01,$EB !=
!byte $FE
bcc .exit
lda #$01
ldx #$EB
ldy #$01
jsr compare ; and T00,S01,$EB !=
!byte $00
bcc .exit
lda #$08
ldx #$10
ldy #$05
jsr compare ; and T00,S08,$10 ==
!byte $A0,$03 ; LDY #$03
!byte $B1,$48 ; LDA ($48),Y
!byte $48 ; PHA
bcs .exit
lda #s_diskvol
jsr PrintByID
lda #$08
ldx #$12
ldy #$02
jsr modify ; then set T00,S08,$12 =
!byte $A9,$00
!byte $A9,$00 ; LDA #$00
.exit
}

View File

@ -5,7 +5,6 @@
; module by qkumba
;-------------------------------
!zone {
_ea
lda gIsEA ; only ever seen this protection
beq + ; on Electronic Arts titles
jmp .dostitles

View File

@ -3,43 +3,58 @@
; Activision's Timing Bit Detection:
; FB+FF FF+FF FF+FD FF+FF+FF+FF+FF+FF+FF+FF+FF+ and
; DE AA EB+FF+FF+FF+FF+FF+FF D5 AA
; Magic key is #FF, usually EOR'ed with #$AA but not always
; Magic key is #$FF, usually EOR'ed with #$AA but not always
; As found on Aliens, Maniac Mansion + 22 other titles
;
; Module by Brian Troha
;-------------------------------
!zone {
_fbff
ldy #$45
jsr SearchTrack
!byte $BD,$89,$C0,$A9,$56,$85,$FD,$A9
!byte $08,$C6,$FC,$D0,$04,$C6,$FD,$F0
!byte WILDCARD,$BC,$8C,$C0,$10,$FB,$C0,$FB
!byte $D0,$ED,$F0,$00,$EA,$EA,$BC,$8C
!byte $C0,$C0,$08,$2A,$B0,$0B,$BC,$8C
!byte $C0,$10,$FB,$C0,$FF,$D0,$D8,$F0
!byte $EB,$BC,$8C,$C0,$10,$FB,$84,$FC
!byte $C9,$0A,$D0,$CB,$BD,$8C,$C0,$10
!byte $FB,$38,$2A,$25,$FC
bcc +
ldy #$38
jsr SearchTrack
!byte $BD,$89,$C0,$A9,$56,$85,$FD,$A9
!byte $08,$C6,$FC,$D0,$04,$C6,$FD,$F0
!byte WILDCARD,$BC,$8C,$C0,$10,$FB,$C0,$FB
!byte $D0,$ED,$F0,$00,$EA,$EA,$BC,$8C
!byte $C0,$C0,$08,$2A,$B0,$0B,$BC,$8C
!byte $C0,$10,$FB,$C0,$FF,$D0,$D8,$F0
!byte $EB,$BC,$8C,$02,$40,$29,$7F,$C9
!byte $BD,$89,$C0
!byte $A9,$56
!byte $85,$FD
!byte $A9,$08
!byte $C6,$FC
!byte $D0,$04
!byte $C6,$FD
!byte $F0,WILDCARD
!byte $BC,$8C,$C0
!byte $10,$FB
!byte $C0,$FB
!byte $D0,$ED
!byte $F0,$00
!byte $EA
!byte $EA
!byte $BC,$8C,$C0
!byte $C0,$08
!byte $2A
!byte $B0,$0B
!byte $BC,$8C,$C0
!byte $10,$FB
!byte $C0,$FF
!byte $D0,$D8
!byte $F0,$EB
!byte $BC,$8C,$C0
!byte $10,$FB
!byte $84,$FC
!byte $C9,$0A
!byte $D0,$CB
!byte $BD,$8C,$C0
!byte $10,$FB
!byte $38
!byte $2A
!byte $25,$FC
bcs .exit
+ sta gDisplayBytes
sta gDisplayBytes
pha
lda #s_fbff
jsr PrintByID
pla
ldy #$05
jsr modify
!byte $A9,$FF,$18,$90,$40
!byte $A9,$FF
!byte $18
!byte $90,$40
.exit
}

View File

@ -5,8 +5,6 @@
; e.g. Essential Grammar, Math Football
;-------------------------------
!zone {
_gamco
; [speed optimization: only ever seen this protection on disks with a specific
; nibble sequence on track $22]
lda gIsEEEF

View File

@ -5,7 +5,6 @@
; e.g. Alien Addition
;-------------------------------
!zone {
_jmpae8e
lda gIsBoot0 ; if DOS 3.3 boot0 loader
bne .exit
lda gIsBoot1 ; and DOS 3.3 boot1 loader