From 007af45879420478082753be99a846287fb563db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 7 Sep 2021 12:23:01 +0300 Subject: [PATCH] Use `db` instead of `dw` for number of FATs Using `dw` ended up shifting all the values over by one byte, making DOS think our 320K floppy was actually 16MiB in size, and had 46 sectors of FAT instead of 1. This further lead it trash the setup stack and fail to locate the disk directory. --- io.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.asm b/io.asm index 1b56611..b2f5f66 100644 --- a/io.asm +++ b/io.asm @@ -148,7 +148,7 @@ parameters_320k: dw 512 ; Sector size in bytes db 2 ; Sectors per cluster dw 1 ; Number of reserved sectors - dw 2 ; Number of FATs + db 2 ; Number of FATs dw 112 ; Number of directory entries dw 320*2 ; Number of sectors