diff --git a/boot.asm b/boot.asm index 26ba813..24f511d 100644 --- a/boot.asm +++ b/boot.asm @@ -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