From 12fc8a1e37c21861d988f90db6aa70be0693e230 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Sat, 12 Oct 2024 12:58:32 -0400 Subject: [PATCH] use NASM defined size value from structure macro --- include/fat32/FAT32_SYS.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fat32/FAT32_SYS.inc b/include/fat32/FAT32_SYS.inc index 9c8d01b..9f00869 100644 --- a/include/fat32/FAT32_SYS.inc +++ b/include/fat32/FAT32_SYS.inc @@ -28,7 +28,7 @@ ALIGN 4, db 0x90 InitFATDriver: __CDECL16_ENTRY .func: - mov ax, fat32_state_SIZE + mov ax, FAT32_State_t_size push ax ; length of fat32_state structure xor ax, ax push ax ; init fat32_state with zero