OS Development 2
So david told me to make my own boot loader, so I did. 
After many painful hours of wondering why it won't work, realizing my FAT12 header was off by a bit, rewriting and rewriting, asking people for help, I finally got the bootloader working. It took 509 bytes, without the 0xAA55 signature at the end, so I was really stretching it. I had to make some sacrifices and strings don't really say what I wanted them to, but it's fine, considering this is just the trampoline into the 2nds stage.
So all it does is look for PHASE2.BIN on the diskette, loads it into 0x1000:0 and jumps there and executes. Of course I haven't implemented the 2nd stage, so I just put the same dummy file for testing.
Spent so much time working today on the bootloader had no time to start the 2nd stage lol 
To implement: Open A20 gate, probe free memory, GDT tables and pmode and 32 bit, set stack etc etc, the usual stuff before handing off execution to a kernel.
GIF ftw


After many painful hours of wondering why it won't work, realizing my FAT12 header was off by a bit, rewriting and rewriting, asking people for help, I finally got the bootloader working. It took 509 bytes, without the 0xAA55 signature at the end, so I was really stretching it. I had to make some sacrifices and strings don't really say what I wanted them to, but it's fine, considering this is just the trampoline into the 2nds stage.
So all it does is look for PHASE2.BIN on the diskette, loads it into 0x1000:0 and jumps there and executes. Of course I haven't implemented the 2nd stage, so I just put the same dummy file for testing.
Spent so much time working today on the bootloader had no time to start the 2nd stage lol 
To implement: Open A20 gate, probe free memory, GDT tables and pmode and 32 bit, set stack etc etc, the usual stuff before handing off execution to a kernel.
GIF ftw

