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. ; end of the line.
call fsPlace call fsPlace
ld b, a ; we will seek A times ld b, a ; we will seek A times
.loop:
ld a, BLOCKDEV_SEEK_FORWARD ld a, BLOCKDEV_SEEK_FORWARD
ld hl, FS_BLOCKSIZE ld hl, FS_BLOCKSIZE
.loop:
call fsblkSeek call fsblkSeek
djnz .loop djnz .loop
; Good, were here. We're going to read meta from our current position. ; Good, were here. We're going to read meta from our current position.