Page 1 of 1

I believe ive found a bug?

Posted: Sat Jul 22, 2006 1:44 pm
by elderK
Hey all, I did what you all told me, and searched the Internet for information on FAT12 Bootloaders, and found this website:

http://www.omninerd.com/2005/11/05/articles/40

The guy is checking to see if we have reached the end of a file, with the number: 0x0FF0.

Trying his code, My kernel is found, but crazy **** happens and it just dies, even though the Kernel im trying to load is a 512 byte Assembler program that simply halts the system.

Anywho, After poking about on the Floppydisk with a Hex editor, Ive fuond... that the end of the file is marked by the Hexidecimal number 0x0A

Is that guys tutorial wrong? or am I wrong?
*scratches head* hmm.

~Zeii.[font=Verdana][/font]

Re:I believe ive found a bug?

Posted: Sat Jul 22, 2006 2:17 pm
by Candy
The FAT table links sectors. When a file ends, there's no more "next sector". It's then indicated by using a 0xFF0 (in FAT12) that the file has ended.