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.
This commit is contained in:
Juhani Krekelä 2021-09-07 12:23:01 +03:00
parent ee9acef473
commit 007af45879
1 changed files with 1 additions and 1 deletions

2
io.asm
View File

@ -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