1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-24 14:38:05 +11:00

fs: allow fsNext to skip more than one block

When B>1, fsNext failed because HL was changed in the Seek call.
This commit is contained in:
Virgil Dupras 2019-05-16 13:59:52 -04:00
parent e18879fcb2
commit ede228374c

View File

@ -150,9 +150,9 @@ fsNext:
; end of the line.
call fsPlace
ld b, a ; we will seek A times
.loop:
ld a, BLOCKDEV_SEEK_FORWARD
ld hl, FS_BLOCKSIZE
.loop:
call fsblkSeek
djnz .loop
; Good, were here. We're going to read meta from our current position.