passport/src/patchers/woodbury.a
2021-04-08 12:22:02 -04:00

37 lines
939 B
Plaintext

;-------------------------------
; #WOODBURY
; bad block check with delayed effects
;
; Tested on
; - PlayWriter: Mystery! (1985, Woodbury)
; - PlayWriter: Adventures in Space (1985, Woodbury)
; - PlayWriter: Castles and Creatures (1985, Woodbury)
;-------------------------------
!zone {
lda gPossibleWoodbury
bne .exit
ldy #$14
jsr SearchTrack
!byte $A9,$00
!byte $85,$09
!byte $A9,WILDCARD
!byte $A0,WILDCARD
!byte $20,$D9,$03
!byte $AD,WILDCARD,WILDCARD
!byte $C9,$40
!byte $D0,$05
!byte $A9,$00
bcs .exit ; passport-test-suite/PlayWriter.woz [C=0] matches
sta gDisplayBytes
pha
lda #s_badblock
jsr PrintByID
pla
jsr inx4
ldy #$02
jsr modify
!byte $F0,$0E
.exit
}