I believe ive found a bug?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
elderK

I believe ive found a bug?

Post 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]
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:I believe ive found a bug?

Post 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.
Post Reply