Floppy - Drive

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
Wishmaster

Floppy - Drive

Post by Wishmaster »

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 ?
cxsnew

Re:Floppy - Drive

Post by cxsnew »

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.
Wishmaster

Re:Floppy - Drive

Post by Wishmaster »

No, it doesnt work still timeout.
Wishmaster

Re:Floppy - Drive

Post by Wishmaster »

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 :_)
Post Reply