From 283ed06d7e7f70eeeea0974b0468893b3e69c9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 6 Jul 2021 21:50:56 +0300 Subject: [PATCH] Ignore deleted files in bootloader --- boot.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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