LBA to CHS conversion

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
SystemHalted

LBA to CHS conversion

Post by SystemHalted »

I have a few questions:
1.When converting How do i get the sectors per cylnder and number of heads
2.do i just write the CHS value it gives me like this:
void Read_one_sector_LBA(int drv,int sect,word *buffer)
{
   int cyln,head,sect;
   /*do LBA CHS conversion*/
   Read_one_sector_CHS(cyln,head,sect,drv,buffer);
}
Thanks
Karig

RE:LBA to CHS conversion

Post by Karig »

Read this tutorial at BonaFide OS Development.

http://www.osdever.net/tutorials/chs_lba.php?the_id=87
Post Reply