Ata controller status register zero

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
Ponteley
Posts: 1
Joined: Thu Mar 31, 2022 6:59 am

Ata controller status register zero

Post by Ponteley »

I want read sector from hard disk. I use ata pio. Work with 0x1f0-1f7 ports. The PIO protocol says that I must wait for BSY=0, write to DEV the number of the device on the channel, wait for BSY=0 and RDY=1. But the program goes into an eternal loop, because RDY always equals 0. How can i solve this proglem?
Registers:
Image
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: Ata controller status register zero

Post by Octocontrabass »

Is there a hard disk attached to that channel?

Post your bochsrc if you're not sure.
Post Reply