FAT12/FDC problem

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
boeing1204
Posts:2
Joined:Thu Jan 29, 2009 3:04 pm
FAT12/FDC problem

Post by boeing1204 » Thu Jan 29, 2009 3:25 pm

Hi guys,
first of all: great tutorial series you got there...I tried several others before, but they didn't lead to anything.

Ok, now here is my problem: my stage one bootloader can only read files with up to 30208 bytes, which are exactly 59 clusters. As soon as it has to load a 60th sector, execution stops...no triple fault, no nothing...it just stops.

I know, it's probably not necessary to load files that big, but I still wonder why. Is it a FAT or FDC limitation or is it just an error in my code?

I hope you can help me somehow.
Greez,
Hans

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Post by Andyhhp » Fri Jan 30, 2009 9:49 am

Hi,

Unfortunately for you, it is most likely a bug in your code. There should be no reachable upper limit on a Floppy disk.

Could you post your code?

~Andrew
Image

boeing1204
Posts:2
Joined:Thu Jan 29, 2009 3:04 pm

Post by boeing1204 » Fri Jan 30, 2009 10:58 pm

I could, but I don't think it is necessary. The code from the tutorial does the exact same thing.

Just add "times 35000 db 0" anywhere in the stage 2 code and see what happens.
Greez,
Hans

Post Reply