Page 1 of 1

FAT12 example code

Posted: Wed Jun 13, 2007 6:18 pm
by anon19287473
I'm writing a bootloader for my OS (GRUB wasn't worth the trouble), and i need some real mode example code (preferably NASM) for FAT12 (dir function + file reading type stuff). I can't find any good example code (which I perfer to straight up documentation, i guess i understand it in code better than english lol. you can pick apart the code, play with it, helps me learn :) ). Thanks in advance.

Posted: Wed Jun 13, 2007 8:57 pm
by jzgriffin
Mr. John S. Fine's bootf02 boot sector for 32-bit protected mode operating systems on FAT12 file systems: http://my.execpc.com/~geezer/johnfine/

jloc is also there, and you need that to build bootf02 (for "picking it apart.")

Good luck :-)