LBA: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
m Bot: Replace deprecated source tag with syntaxhighlight |
||
Line 11:
For example, one could convert an LBA for a floppy drive to the CHS with the following code snippet (based on Brokenthorn's Floppy tutorial, see the link below):
<
void ToCHS(int lba, int *head, int *track, int *sector)
{
Line 18:
(*sector) = (lba % SECTORS_PER_TRACK + 1);
}
</syntaxhighlight>
== See Also ==
|