.endif
; imported symbols
+ .globl map_buffers
.globl map_kernel
.globl map_process_always
.globl _devfd_dtbl
; inner section of FdCmd routine, has to touch buffers etc
FdCmdXfer:
BIT 0,D ; Buffer in user memory?
- CALL NZ, map_process_always
-
+ JR Z, kernxfer
+ CALL map_process_always
+ JR doxfer
+kernxfer:
+ CALL map_buffers
+doxfer:
; send the command (length is in B, command is in C)
PUSH HL ; save pointer for possible Transfer
LD HL,#comnd ; Point to Command Block
; tidy up and return
FdCmdXferDone:
- BIT 0,D ; Buffer in user memory?
- RET Z ; done if not
JP map_kernel ; else remap kernel and return
;-------------------------------------------------------------