Previous
Index
Next
INT 13 - IBM/MS INT 13 Extensions - EXTENDED READ AH = 42h DL = drive number DS:SI -> disk address packet (see #00272) Return: CF clear if successful AH = 00h CF set on error AH = error code (see #00234) disk address packet's block count field set to number of blocks successfully transferred Notes: lDOS boot sector loaders for FAT12 and FAT16 may attempt to read sectors using this function without first detecting LBA support with the proper check (AH=41h"INT 13 Ext"), instead passing CF set and checking for the returned CF set and an error code 01h in AH. if this condition is met, the loader falls back to try reading the sector using CHS access AH=02h. this is called the "skip check" method of LBA detection. lDOS instsect /L options can affect the use of this function without AH=41h"INT 13 Ext" in lDOS boot sector loaders as well, refer to the notes in that entry for details. SeeAlso: AH=02h,AH=41h"INT 13 Ext",AH=43h"INT 13 Ext" Format of disk address packet: Offset Size Description (Table 00272) 00h BYTE size of packet (10h or 18h) 01h BYTE reserved (0) 02h WORD number of blocks to transfer (max 007Fh for Phoenix EDD) 04h DWORD -> transfer buffer 08h QWORD starting absolute block number (for non-LBA devices, compute as (Cylinder*NumHeads + SelectedHead) * SectorPerTrack + SelectedSector - 1 10h QWORD (EDD-3.0, optional) 64-bit flat address of transfer buffer; used if DWORD at 04h is FFFFh:FFFFh