Ci-dessous, les différences entre deux révisions de la page.
Révision précédente | |||
— | back2root:ibm-pc-ms-dos:interrupts:int_13:start [2025/07/22 22:05] (Version actuelle) – [Int 13h - Disks - WIP] frater | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Int 13h - Disks - WIP ====== | ||
+ | |||
+ | <nspages -h1 -simpleList -exclude: | ||
+ | |||
+ | |||
+ | === Most disk BIOS calls use the following parameter scheme: === | ||
+ | |||
+ | ^ reg ^ description ^ | ||
+ | |AH | function request number| | ||
+ | |AL | number of sectors | ||
+ | |CH | cylinder number | ||
+ | |CL | sector number (1-17 dec.)| | ||
+ | |DH | head number | ||
+ | |DL | drive number (0=A:, 1=2nd floppy, 80h=drive 0, 81h=drive 1)| | ||
+ | |DL | drive number (0=A:, 1=2nd floppy, 80h=C:, 81h=D:)\\ Note that some programming references use (0-3) as the drive number which represents diskettes only.| | ||
+ | |ES:BX | address of user buffer| | ||
+ | |||
+ | |||
+ | === and return with: === | ||
+ | |||
+ | | CF | 0 if successful \\ 1 if error | | ||
+ | | AH | status of operation | ||
+ | |||
+ | <WRAP round box> | ||
+ | * INT 13 diskette read functions should be retried at least 3 times to assure the disk motor has time to spin up to speed | ||
+ | * physical sector numbers can be converted to and from DOS sector numbers with the following formulas: | ||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 75%> | ||
+ | <m 15> | ||
+ | </ | ||
+ | <WRAP center round tip 75%> | ||
+ | <m 15> | ||
+ | </ | ||
+ | <WRAP center round tip 75%> | ||
+ | <m 15> | ||
+ | </ | ||
+ | <WRAP center round tip 75%> | ||
+ | <m 15> | ||
+ | </ | ||
+ | |||
+ | [[back2root: | ||