1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Int 13h function AH=44h, Extended Verify Sectors.
|
---|
3 |
|
---|
4 | ; Section containing code
|
---|
5 | SECTION .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 | ;--------------------------------------------------------------------
|
---|
24 | ALIGN JUMP_ALIGN
|
---|
25 | AH44h_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
|
---|