source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/EBIOS/AH44h_ExtendedVerifySectors.asm@ 290

Last change on this file since 290 was 249, checked in by aitotat@…, 13 years ago

Changes to XTIDE Universal BIOS:

  • Number of successfully transferred sectors is now returned by all transfer functions (instead of requested sector count).
  • Added INT 19h handler for proper reboot.
File size: 1.3 KB
Line 
1; Project name : XTIDE Universal BIOS
2; Description : Int 13h function AH=44h, Extended Verify Sectors.
3
4; Section containing code
5SECTION .text
6
7;--------------------------------------------------------------------
8; Int 13h function AH=44h, Extended Verify Sectors.
9;
10; AH44h_HandlerForExtendedVerifySectors
11; Parameters:
12; SI: Same as in INTPACK
13; DL: Translated Drive number
14; DS:DI: Ptr to DPT (in RAMVARS segment)
15; SS:BP: Ptr to IDEPACK
16; Parameters on INTPACK:
17; DS:SI: Ptr to Disk Address Packet
18; Returns with INTPACK:
19; AH: Int 13h return status
20; CF: 0 if succesfull, 1 if error
21; Return with Disk Address Packet in INTPACK:
22; .wSectorCount Number of sectors verified successfully
23;--------------------------------------------------------------------
24ALIGN JUMP_ALIGN
25AH44h_HandlerForExtendedVerifySectors:
26 call Prepare_ByLoadingDapToESSIandVerifyingForTransfer
27 mov ah, [cs:bx+g_rgbVerifyCommandLookup]
28 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRDY)
29%ifdef USE_186
30 push AH42h_ReturnFromInt13hAfterStoringErrorCodeFromAHandTransferredSectorsFromCX
31 jmp Idepack_ConvertDapToIdepackAndIssueCommandFromAH
32%else
33 call Idepack_ConvertDapToIdepackAndIssueCommandFromAH
34 jmp SHORT AH42h_ReturnFromInt13hAfterStoringErrorCodeFromAHandTransferredSectorsFromCX
35%endif
Note: See TracBrowser for help on using the repository browser.