Commit Graph

444 Commits

Author SHA1 Message Date
Nero cb48e628db kernel stub: force large size to make sure cluster chaining works 2020-04-01 13:09:01 +00:00
Nero 1981a8efba fat32 bs: use BPB include header and base off BP
We now set BP once at the start to point to the beginning of the BPB.
Encoding an direct address access can then be done relative to BP, which
saves an immediate byte per access.
2020-03-31 20:03:05 +00:00
Nero 9044e3948c Remove BASE macro and companions 2020-03-31 19:46:59 +00:00
Nero c67894551b Use directory path for includes, make them use *.asm as extension 2020-03-31 18:43:38 +00:00
Nero 73fb2b1e81 Add include file for BPB data 2020-03-31 13:04:13 +00:00
Nero eabb1d9fa9 Properly set up registers when chainloading from boot sector 2020-03-30 20:41:32 +00:00
Nero bc096f41d3 Compact bootloader code 2020-03-30 19:43:07 +00:00
Nero 0b2a7e7b64 fat32 bootloader: implement directory recursing and kernel load
this is actually working now.
2020-03-30 18:50:17 +00:00
Nero bbe006c9bc Improve FAT offset calculation 2020-03-30 15:23:51 +00:00
Nero d718777ef6 Mark path to kernel file with +s
This is actually a much easier way to find the kernel file than comparing
filenames and helps reducing the size of the bootsector.
2020-03-30 12:35:59 +00:00
Nero 955acdacba Split code up into directories for bs and com binaries 2020-03-30 12:14:47 +00:00
Nero 5a24ceb9b8 Implement cluster chaining for FAT 2020-03-28 17:36:52 +00:00
Nero 76880e9275 Advance on bootloader: load cluster data 2020-03-25 21:19:40 +00:00
Nero c51dca9949 add kernel stub to distfiles
this way i can test if the bootloader works as intended
2020-03-25 20:56:00 +00:00
Nero 398395371b Improve inline commenting 2020-03-23 19:01:23 +00:00
Nero 660944e70f Start working on FAT32 bootloader 2020-03-16 17:24:39 +00:00
Nero 65be1051b3 bmp2font: explain 2020-03-16 17:24:16 +00:00
Nero 764950b2a1 rename pxe: make clear its a bootloader 2020-03-16 17:23:59 +00:00
Nero b3ae58175c remove unused file 2020-03-02 22:31:13 +00:00
Nero 5eedddd0c9 Improve error handling in fat bs 2020-03-02 22:15:46 +00:00
Nero 59dd979feb Fix missing org for hello.com 2020-03-02 20:45:18 +00:00
Nero 7143112a5b fat: add fread 2020-03-02 20:45:06 +00:00
Nero 9288ad46a4 fat: rework bootloader 2020-03-02 19:44:37 +00:00
Nero 598a2c0fdf random fixes 2020-03-02 12:10:21 +00:00
Nero 7cfd87b6b4 Add normal hello world program for testing 2020-03-02 11:57:43 +00:00
Nero 0f833da221 Boot signature via include 2020-03-01 17:20:03 +00:00
Nero 79bedd9013 Fixes for makefile 2020-03-01 17:08:25 +00:00
Nero bc238a3bf9 i still dont know what im doing 2020-03-01 16:45:16 +00:00
Nero 4847eb4d88 Revert "Throw out previous x86 stuff"
This reverts commit 807db4a592.
2020-03-01 12:03:35 +00:00
Nero 30ae244ef1 sigh. i dont know 2020-02-28 19:55:00 +00:00
Nero f4f89e8e48 Fix broken argument handling 2020-01-13 00:50:43 +01:00
Nero cd3da4faab WIP on superzazu-based emulator 2019-12-22 12:57:53 +01:00
Nero 23c881edbf Remove section in bios interface 2019-12-22 03:01:29 +01:00
Nero f3612ddb95 Add 8080 emulator as submodule 2019-12-22 02:59:52 +01:00
Nero 807db4a592 Throw out previous x86 stuff 2019-12-22 02:52:40 +01:00
Nero 18e9221bf6 Bootstrap 8080 via DR macro assembler 2019-12-22 02:37:28 +01:00
Nero d6f1d1ff3d CP437.BIN: generate from shipped bitmap 2019-12-22 02:36:52 +01:00
Nero c3f347d9eb Use other font with some more serifs 2019-12-07 23:00:05 +01:00
Nero c54b2eb90d Add CP437 8x8 font 2019-12-07 18:35:59 +01:00
Nero 6fd60f867c Fix .gitignore to not ignore parts of src/ 2019-11-29 16:01:09 +00:00
Nero eb67071ffb Ubuntu needs stdint.h for uint8_t 2019-11-24 11:28:39 +00:00
Nero fe319a0caa Fix conditional jump instructions not eating their immediate data 2019-11-15 15:54:37 +00:00
Nero 6b1c53dad5 8080 Emulator can now do most opcodes
Still very buggy
2019-11-15 14:42:07 +00:00
Nero 215fcaf67b Add WIP 8080 emulator 2019-11-15 08:27:58 +00:00
Nero cef35930e9 Remove attempt of 8086 emulator - not primary target platform 2019-11-14 21:11:51 +00:00
Nero 35593dada1 Replace fix-rom script with utils binary 2019-11-09 11:02:27 +00:00
Nero a4697fa666 Generalize build mechanism for host utils 2019-11-07 17:39:17 +00:00
Nero ba472e81b2 bios: Fix wrong word mask in setsec 2019-11-06 21:49:19 +00:00
Nero a70c7f3be6 bios: HOME must reset track & sector 2019-11-06 21:48:55 +00:00
Nero d3f6915af4 Implement jump table for syscalls 2019-11-05 20:50:29 +00:00