Commit Graph

300 Commits

Author SHA1 Message Date
1e99086fc6 Add CHS+LBA dual support for boot sector 2020-04-04 14:29:33 +00:00
dc5e437c2d Revert "Remove unused stuff"
debug rom still uses printf

This reverts commit a9fa3d355e.
2020-04-04 11:41:01 +00:00
a9fa3d355e Remove unused stuff 2020-04-04 09:27:33 +00:00
91cad67415 Reboot after keypress instead of halting on boot failure 2020-04-03 19:45:49 +00:00
6eca218f8e Explain the booterr code a bit 2020-04-03 19:43:10 +00:00
3da473a00c Use optimized error handling for boot sector 2020-04-03 17:38:33 +00:00
cb48e628db kernel stub: force large size to make sure cluster chaining works 2020-04-01 13:09:01 +00:00
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
9044e3948c Remove BASE macro and companions 2020-03-31 19:46:59 +00:00
c67894551b Use directory path for includes, make them use *.asm as extension 2020-03-31 18:43:38 +00:00
73fb2b1e81 Add include file for BPB data 2020-03-31 13:04:13 +00:00
eabb1d9fa9 Properly set up registers when chainloading from boot sector 2020-03-30 20:41:32 +00:00
bc096f41d3 Compact bootloader code 2020-03-30 19:43:07 +00:00
0b2a7e7b64 fat32 bootloader: implement directory recursing and kernel load
this is actually working now.
2020-03-30 18:50:17 +00:00
bbe006c9bc Improve FAT offset calculation 2020-03-30 15:23:51 +00:00
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
955acdacba Split code up into directories for bs and com binaries 2020-03-30 12:14:47 +00:00
5a24ceb9b8 Implement cluster chaining for FAT 2020-03-28 17:36:52 +00:00
76880e9275 Advance on bootloader: load cluster data 2020-03-25 21:19:40 +00:00
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
398395371b Improve inline commenting 2020-03-23 19:01:23 +00:00
660944e70f Start working on FAT32 bootloader 2020-03-16 17:24:39 +00:00
65be1051b3 bmp2font: explain 2020-03-16 17:24:16 +00:00
764950b2a1 rename pxe: make clear its a bootloader 2020-03-16 17:23:59 +00:00
b3ae58175c remove unused file 2020-03-02 22:31:13 +00:00
5eedddd0c9 Improve error handling in fat bs 2020-03-02 22:15:46 +00:00
59dd979feb Fix missing org for hello.com 2020-03-02 20:45:18 +00:00
7143112a5b fat: add fread 2020-03-02 20:45:06 +00:00
9288ad46a4 fat: rework bootloader 2020-03-02 19:44:37 +00:00
598a2c0fdf random fixes 2020-03-02 12:10:21 +00:00
7cfd87b6b4 Add normal hello world program for testing 2020-03-02 11:57:43 +00:00
0f833da221 Boot signature via include 2020-03-01 17:20:03 +00:00
79bedd9013 Fixes for makefile 2020-03-01 17:08:25 +00:00
bc238a3bf9 i still dont know what im doing 2020-03-01 16:45:16 +00:00
4847eb4d88 Revert "Throw out previous x86 stuff"
This reverts commit 807db4a592.
2020-03-01 12:03:35 +00:00
30ae244ef1 sigh. i dont know 2020-02-28 19:55:00 +00:00
Ain
f4f89e8e48 Fix broken argument handling 2020-01-13 00:50:43 +01:00
Ain
cd3da4faab WIP on superzazu-based emulator 2019-12-22 12:57:53 +01:00
Ain
23c881edbf Remove section in bios interface 2019-12-22 03:01:29 +01:00
Ain
f3612ddb95 Add 8080 emulator as submodule 2019-12-22 02:59:52 +01:00
Ain
807db4a592 Throw out previous x86 stuff 2019-12-22 02:52:40 +01:00
Ain
18e9221bf6 Bootstrap 8080 via DR macro assembler 2019-12-22 02:37:28 +01:00
Ain
d6f1d1ff3d CP437.BIN: generate from shipped bitmap 2019-12-22 02:36:52 +01:00
Ain
c3f347d9eb Use other font with some more serifs 2019-12-07 23:00:05 +01:00
Ain
c54b2eb90d Add CP437 8x8 font 2019-12-07 18:35:59 +01:00
Ain
6fd60f867c Fix .gitignore to not ignore parts of src/ 2019-11-29 16:01:09 +00:00
Ain
eb67071ffb Ubuntu needs stdint.h for uint8_t 2019-11-24 11:28:39 +00:00
Ain
fe319a0caa Fix conditional jump instructions not eating their immediate data 2019-11-15 15:54:37 +00:00
Ain
6b1c53dad5 8080 Emulator can now do most opcodes
Still very buggy
2019-11-15 14:42:07 +00:00
215fcaf67b Add WIP 8080 emulator 2019-11-15 08:27:58 +00:00