Changeset 165 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH2h_HRead.asm
- Timestamp:
- Aug 20, 2011, 6:37:44 PM (14 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH2h_HRead.asm
r158 r165 15 15 ; SS:BP: Ptr to IDEPACK 16 16 ; Parameters on INTPACK: 17 ; AL: Number of sectors to read (1... 255)17 ; AL: Number of sectors to read (1...127) 18 18 ; CH: Cylinder number, bits 7...0 19 19 ; CL: Bits 7...6: Cylinder number bits 9 and 8 … … 29 29 AH2h_HandlerForReadDiskSectors: 30 30 cmp BYTE [bp+IDEPACK.intpack+INTPACK.al], 0 31 j e SHORT AH2h_ExitInt13hSinceSectorCountInIntpackIsZero31 jle SHORT AH2h_ExitInt13hSinceSectorCountInIntpackIsZero 32 32 33 mov ah, COMMAND_READ_SECTORS ; Load sector mode command34 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED35 eCMOVNZ ah, COMMAND_READ_MULTIPLE ; Load block mode command33 xor bx, bx 34 call CommandLookup_OrOldInt13hIndexToBL 35 mov ah, [cs:bx+g_rgbReadCommandLookup] 36 36 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ) 37 37 mov si, [bp+IDEPACK.intpack+INTPACK.bx] … … 55 55 mov ah, RET_HD_INVALID 56 56 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH 57
Note:
See TracChangeset
for help on using the changeset viewer.