Skip to content

Commit

Permalink
Fix: incorrect setting of UD_ACLU when freeing a FAT chain (Konamiman#96
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Konamiman authored and vipoo committed Oct 2, 2023
1 parent 0334c7a commit 0b231b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/kernel/bank2/fat.mac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b231b5

Please sign in to comment.