Contigous Sector Loading Bootsector
Posted: Sun Aug 07, 2005 2:14 am
What do you think? When I started, I couldn't find a floppy emulator for Windows ME, so I had to use a REAL floppy. Very annoying. So I made this for people who want to just create an image of contigous sectors (starting with this bootsector) to load. Also it is for education.
It loads a max of 64KB of data. That should be PLENTY! Since from that you can load more stuff with your floppy drivers. If you ever get there....
I have no idea wether it works or not, as I haven't tried it loading any REAL code. It should though. It doesn't jump to the loaded code yet, either. I'd like someone to look over it if they could. It's my most well-commented ASM program ever!
Also my longest piece of ASM. My first bootloader that wasn't mostly copy+paste.
I'll be using it myself too, replacing my old EVIL one that was a hard-coded reader. Look about 1/4 down and find the variables, NumSecToRead can be set up to 128 (over that and it will start to overwrite the bootsector!)
It shows what sectors are being read in hex.
Used around 500 of my 510 bytes. Hehehe - barely made it with a small amount of optimization.
Switches to PMODE, (Does NOT enable the A20, yet) sets up two segments (simple GDT, not included) one data, one code, both limited 4GB and priveledge 0.
I was wondering if you guys would like an article in the wiki?
It loads a max of 64KB of data. That should be PLENTY! Since from that you can load more stuff with your floppy drivers. If you ever get there....
I have no idea wether it works or not, as I haven't tried it loading any REAL code. It should though. It doesn't jump to the loaded code yet, either. I'd like someone to look over it if they could. It's my most well-commented ASM program ever!
Also my longest piece of ASM. My first bootloader that wasn't mostly copy+paste.
I'll be using it myself too, replacing my old EVIL one that was a hard-coded reader. Look about 1/4 down and find the variables, NumSecToRead can be set up to 128 (over that and it will start to overwrite the bootsector!)
It shows what sectors are being read in hex.
Used around 500 of my 510 bytes. Hehehe - barely made it with a small amount of optimization.
Switches to PMODE, (Does NOT enable the A20, yet) sets up two segments (simple GDT, not included) one data, one code, both limited 4GB and priveledge 0.
I was wondering if you guys would like an article in the wiki?