diff --git a/source/kernel/bank2/fat.mac b/source/kernel/bank2/fat.mac index a1e1976c..2f47ff95 100644 --- a/source/kernel/bank2/fat.mac +++ b/source/kernel/bank2/fat.mac @@ -898,9 +898,11 @@ zero_dsec_loop: ld (hl),c ; the data area of buffer dec de ;DE = new value or a sbc hl,de ;HL = current value - new value, Cy=1 if new > current - call nc,ACLU_SET pop hl ;Restore address of unit descriptor - ret + ret c + ld de,(FAT_CHAIN##) + dec de + jp ACLU_SET frchlp3: push hl ;Preserve address of unit descriptor