Page 1 of 1

FAT12/FDC problem

Posted: Thu Jan 29, 2009 3:25 pm
by boeing1204
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.

Posted: Fri Jan 30, 2009 9:49 am
by Andyhhp
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

Posted: Fri Jan 30, 2009 10:58 pm
by boeing1204
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.