Floppy - Drive
Floppy - Drive
Hi, my bootloader jumps to the kernel at segment 0x1000. Now i want to read from the floppy but it doesnt work. I get an error and status code 80, timeout (not ready). Whats up ?
Re:Floppy - Drive
Floppy disk is not reliable in PC, so if you can make sure that you floppy disk can work correctly, then when you get a error status code you should continue to read from it, generally, you should re-try the same operation at least 3 times.
Re:Floppy - Drive
I know the error now. First, i am using C--. I have a function to convert a lba to chs.
void LBA2CHS(byte drive, word lba, byte *head, byte *cylinder, byte *sector);
When i call this function out of the bootloader, this function doesnt set the head, cylinder and the sector. After call head, cylinder and the sector are 0.
The function changes at the wrong addresses.
I try to fix this, but if anyone can help me, please tell me :_)
void LBA2CHS(byte drive, word lba, byte *head, byte *cylinder, byte *sector);
When i call this function out of the bootloader, this function doesnt set the head, cylinder and the sector. After call head, cylinder and the sector are 0.
The function changes at the wrong addresses.
I try to fix this, but if anyone can help me, please tell me :_)