How do you apply the correct math formula from wikipedia?
Wikipedia's math formula:
lba = ((c * hpc)+h) * spt +s -1
LBA to CHS code from brokenthorn:
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