[comp.os.msdos.programmer] how BIOS addresses disk sectors

android@ccwf.cc.utexas.edu (Andy Wilks) (03/15/91)

Function 02, Int 13h reads sectors from the fixed disk as follows:
Input:
AH => 02h
AL => number of sectors to read
CH => Cylinder number (the low 8 bits)
CL => Cylinder number ( 2 high bits ) + Sector Number (bits 0-5)
DH => Head Number
DL => Drive Number (80h=disk1, 81h=disk2)
ES:BX => points to buffer

Output:
AH => 00h = No error
AL => number of sectors read
CF => 0=No error, 1=Error

So we can address up to 1024 cylinders of about 27 sectors each (RLL)
* 512 bytes * 64 heads(???) which allows for a lot of storage!!!

-Andy