Ignore deleted files in bootloader

This commit is contained in:
Juhani Krekelä 2021-07-06 21:50:56 +03:00
parent ad44d90db9
commit 283ed06d7e
1 changed files with 5 additions and 2 deletions

View File

@ -120,14 +120,17 @@ search_root:
cmp byte [si], 0
je .end
; Deleted file?
cmp byte [si], 0xe5
je .skipentry
test byte [si + 11], 0x08 + 0x10
jnz .skipentry
; Make sure the file has non-zero size
; File size must be <32K anyways so don't bother with >64K
cmp word [si + 28], 0
jne .isfile
cmp word [si + 30], 0
jne .isfile
.skipentry:
add si, 32