Skip to content

Commit 0e27b60

Browse files
committed
Fix crash on sector buffer invalidation after writing to device.
1 parent 3a1e520 commit 0e27b60

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)