Skip to content

Commit aaecca6

Browse files
authored
Merge pull request #148 from Konamiman/fix/buffer-invalidation-after-sector-write
Fix crash on sector buffer invalidation after writing to device
2 parents feaa833 + 0e27b60 commit aaecca6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/kernel/bank2/rw.mac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ correct_loop: push bc
388388
add hl,bc
389389
ld a,(hl) ;A := sector number (bit16-22)
390390
; from this buffer
391+
sbc hl,bc
392+
391393
;===== end add FAT16
392394
ex de,hl
393395
ld bc,(RW_PSEC##) ;Compare with sector number

0 commit comments

Comments
 (0)