Register | Description |
AH | will contain the number 2 (function 2) |
AL | the number of sectors to read in. This is commonly 1 since you just want to check a few sectors for disk validity. |
CH | will contain the cylinder number |
CL | will contain the sector number |
DH | will contain the head number |
DL | will contain the drive number 00h - 7Fh for floppies 80h - FFh for fixed disks |
ES:BX | will point to the address into which the data read from the disk will be written to |
Also see:
Introduction to disk protection
Advanced discussion