mov temp,zl
subi temp,-('A')
lcall uartputc
- printstring ": "
.endif
rcall dsk_getpartentry ; get partition entry
.if HOSTRW_DEBUG
- printstring "lba: "
+ printstring ": lba "
push r15
push r14
clr r14
brcs fat_hp1
.if HOSTRW_DEBUG
- printstring ", max: "
+ printstring ", max "
push r15
push r14
push temp2
.endif
.if HOSTRW_DEBUG
- printstring ", abs:"
+ printstring ", abs "
push r15
push r14
push temp2
pop temp2
pop r14
pop r15
- printstring " "
.endif
ori temp,255
fat_writehost:
.if HOSTRW_DEBUG
- printnewline
- printstring "host write "
+ printstring ", hst WR "
.endif
rcall fat_hostparam
breq fat_rdwr_err
fat_readhost:
.if HOSTRW_DEBUG
- printnewline
- printstring "host read "
+ printstring ", hst RD "
.endif
rcall fat_hostparam
breq fat_rdwr_err
-
-.if FAT16_RWDEBUG > 0
- printstring "Read Image Sector:"
- push r15
- push r14
- push temp2
- push temp
- movw temp,x
- movw r14,y
- lcall print_ultoa
- pop temp
- pop temp2
- pop r14
- pop r15
- printnewline
-.endif
-
lcall mmcReadSect
tst temp
breq fat_rdwr_ok