passport/src/patchers/fbffencrypted.a
2021-06-21 10:33:16 -04:00

43 lines
1.3 KiB
Plaintext

;-------------------------------
; #FBFFENCRYPTED
; an encrypted variant of Activision's Timing Bit Detection
;
; see 4am crack no. 622 The Electric Crayon: ABCs
; for full explanation
;
; tested on many Polarware disks:
; The Electric Crayon: ABCs (1986)
; The Electric Crayon: Fun on the Farm (1986)
; The Electric Crayon: This Land is Your Land (1986)
; The Spy's Adventures in North America
; The Spy's Adventures in Europe
; The Crimson Crown
; Oo-Topos
;
; and several non-Polarware disks:
; Clue Master Detective (1989, Leisure Genius)
; RISK (1988, Leisure Genius)
; ESL Writer (1989, Scholastic)
; Magic Spells v2.1 (1985, The Learning Company)
;
;-------------------------------
!zone {
; gIsProDOS is TRUE here
; (only ever seen this protection on ProDOS disks)
ldy #$06
jsr SearchTrack ; (all bytes are XOR #$FF)
!byte $39,$FD ; DEC $02
!byte $2F,$FB ; BNE +4
!byte $39,$FC ; DEC $03
bcs .exit ; passport-test-suite/Oo-Topos.woz [C=0] matches
inx
inx
inx
jsr PrintByID
!byte s_fbff
jsr modify1
!byte $A2 ; change encrypted BNE +4 to +5D so code exits with Death Counter > 0
.exit
}