Commit Graph

9 Commits

Author SHA1 Message Date
Juhani Krekelä e161d14321 Reset floppy disks upon read failure 2022-03-29 09:01:56 +03:00
Juhani Krekelä 48436ef9bd Put debug output behind debug define in io.asm 2022-03-29 09:01:56 +03:00
Juhani Krekelä b9c83b11cd Implement date/time 2021-09-26 13:44:03 +03:00
Juhani Krekelä 68030372b7 Load and execute command.com 2021-09-26 11:46:50 +03:00
Juhani Krekelä 1967c06b85 Fix shift used for converting KiB to paragraphs
The old code was essentially a no-op due to x86 taking shifts mod 32.
This lead DOS to believe that it had 10KiB of memory, which is not
enough to contain io.sys, the DOS kernel, and command.com. This causes
command.com to overwrite the DOS kernel when it goes to relocate itself
at the end of the memory, leading to system crash.
2021-09-26 11:33:03 +03:00
Juhani Krekelä 9a7e047d57 Implement console IO 2021-09-10 19:39:58 +03:00
Juhani Krekelä 7d99699b7e Open command.com in io.sys 2021-09-07 12:30:59 +03:00
Juhani Krekelä 007af45879 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.
2021-09-07 12:27:44 +03:00
Juhani Krekelä b3ca33653f Start work on io.sys 2021-08-26 10:11:20 +03:00