!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!INT 13 - DISK - READ SECTOR(S) INTO MEMORY !! AH = 02h !! AL = number of sectors to read (must be nonzero) !! CH = low eight bits of cylinder number !! CL = sector number 1-63 (bits 0-5) !! high two bits of cylinder (bits 6-7, hard disk only) !! DH = head number !! DL = drive number (bit 7 set for hard disk) !! ES:BX -> data buffer !! Return: CF set on error !! if AH = 11h (corrected ECC error), AL = burst length !! CF clear if successful !! AH = status (see #00234) !! AL = number of sectors transferred (only valid if CF set for some !! BIOSes) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
xor dl,dl mov ah,#0x08 ! AH=8用于取得驱动器参数; int 0x13 xor ch,ch
!!!!!!!!!!!!!!!!!!!!!!!!!!! !! INT 13 - DISK - GET DRIVE PARAMETERS (PC,XT286,CONV,PS,ESDI,SCSI) !! AH = 08h !! DL = drive (bit 7 set for hard disk) !!Return: CF set on error !! AH = status (07h) (see #00234) !! CF clear if successful !! AH = 00h !! AL = 00h on at least some BIOSes%3