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
LBA to CHS conversion
RE:LBA to CHS conversion
Read this tutorial at BonaFide OS Development.
http://www.osdever.net/tutorials/chs_lba.php?the_id=87
http://www.osdever.net/tutorials/chs_lba.php?the_id=87