I'm trying to make a boot sector and how do you apply the correct math that's from wikipedia?
wikipedia's math formula
Quote:
lba = ((c * hpc)+h) * spt +s -1
lba to chs from brokenthorn
Quote:
xor dx, dx
div word[bpbSectorsPerTrack]
inc dl
mov byte[absoluteSector],dl
xor dx, dx
div word[bpbHeadsPerCylinder]
mov byte[absoluteHead], dl
mov byte[absoluteTrack], al
ret