passport/src/patchers/t00_dos32dlm.a
2021-06-21 11:57:02 -04:00

24 lines
689 B
Plaintext

;-------------------------------
; #DOS32DLM
; $9D84 jumps to $BCF0 to set the input vector to trap <Ctrl-C> during boot
; (crashes because we don't include their custom code at $BCF0 when we
; reconstruct the bootloader)
;
; tested on
; Alien Addition (1982, DLM)
; Alligator Mix (1982, DLM)
; Dragon Mix (1982, DLM)
;-------------------------------
!zone {
lda gIsDOS32
bne .exit
lda #$0B
ldx #$84
jsr compare3 ; if T00,S0B,$84 ==
!byte $4C,$F0,$BC
bcs .exit ; passport-test-suite/Demolition Division.woz [C=0] matches
jsr modify3 ; then set T00,S0B,$84 =
!byte $AD,$E9,$B7
.exit
}