sta f:KERNEL_CODE_FAR+hd_rpatch+1 ; destination is bank we want
phb ; bank will be corrupted
+ lda #$34 ; DMA port
+ sta f:$00FE11 ; point it at the disk port
+
rep #$30
.a16
hd_rpatch:
mvn $FF,$FF
plb
- sep #$30
+ sep #$30 ; go anywhere
.a8
.i8
+
+ lda #0
+ sta f:$00FE11 ; ensure any DMA window I/O doesn't
+
rts
_hd_write_data:
sta f:KERNEL_CODE_FAR+hd_wpatch+2 ; source is bank we want
phb ; bank will be corrupted
+ lda #$34 ; DMA port
+ sta f:$00FE11 ; point it at the disk port
+
rep #$30
.a16
hd_wpatch:
mvn $FF,$FF
plb
- sep #$30
+ sep #$30 ; go anywhere
.a8
.i8
+
+ lda #0
+ sta f:$00FE11 ; ensure any DMA window I/O doesn't
+
rts
_hd_kmap: