From 4c2bda46b2a62558b2e2a4b46651b96f45c34a88 Mon Sep 17 00:00:00 2001 From: "C. Masloch" Date: Thu, 29 Jul 2021 13:13:56 +0200 Subject: [PATCH] boot: put placeholder LBA_TEST_OFFSET if no ISFATx define --- boot/boot.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boot/boot.asm b/boot/boot.asm index b38e145..93631ec 100644 --- a/boot/boot.asm +++ b/boot/boot.asm @@ -425,6 +425,11 @@ read_next: %define LBA_TEST_OFFSET 179h %elifdef ISFAT16 %define LBA_TEST_OFFSET 176h +%else + %define LBA_TEST_OFFSET 0 + ; Just a placeholder, so the proper error message + ; will be shown when assembling without either + ; of the ISFATx defines. %endif %if ($ - Entry) != LBA_TEST_OFFSET %error Must update constant offset (LBA_TEST_OFFSET) to test dl,dl here and in sys.c for FATFS