reading from floppy fails
Posted: Sun Apr 23, 2006 11:52 am
Hi,
Not sure this is the right place to ask this question but I have been looking around the internet and can't find the answer to my problem. I'm experimenting with writing a bootloader and it all kinda works so far. It loads a bootsector which loads a second file. The second file Prints some messages, enables the a20 line and switches to protected mode. All fine.
However when my second file exceeds a certain size( 290bytes or something like that) all of a sudden the file does not get read from disk anymore. The error code I get from the floppy is 01 in AH which appereantly means int 13 invalid function in AH or invalid parameter. If I decrease the size of the file to be loaded by a few bytes (e.g. by leaving a variable out) all works file again. In both situations all registers have the exact same values so I'm quite lost here.
If someone can tell me why the size infuences this or could redirect me to some documentation that explains it I would be greatfull. I'm using the fat12 filesystem btw.
Cyriel
Not sure this is the right place to ask this question but I have been looking around the internet and can't find the answer to my problem. I'm experimenting with writing a bootloader and it all kinda works so far. It loads a bootsector which loads a second file. The second file Prints some messages, enables the a20 line and switches to protected mode. All fine.
However when my second file exceeds a certain size( 290bytes or something like that) all of a sudden the file does not get read from disk anymore. The error code I get from the floppy is 01 in AH which appereantly means int 13 invalid function in AH or invalid parameter. If I decrease the size of the file to be loaded by a few bytes (e.g. by leaving a variable out) all works file again. In both situations all registers have the exact same values so I'm quite lost here.
If someone can tell me why the size infuences this or could redirect me to some documentation that explains it I would be greatfull. I'm using the fat12 filesystem btw.
Cyriel