[165] | 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 | ; .bSectorCount Number of sectors verified successfully |
---|
| 23 | ;-------------------------------------------------------------------- |
---|
| 24 | ALIGN JUMP_ALIGN |
---|
| 25 | AH44h_HandlerForExtendedVerifySectors: |
---|
| 26 | call AH42h_LoadDapToESSIandVerifyForTransfer |
---|
| 27 | call CommandLookup_GetEbiosIndexToBX |
---|
| 28 | mov ah, [cs:bx+g_rgbVerifyCommandLookup] |
---|
| 29 | mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRDY) |
---|
| 30 | %ifdef USE_186 |
---|
| 31 | push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH |
---|
| 32 | jmp Idepack_ConvertDapToIdepackAndIssueCommandFromAH |
---|
| 33 | %else |
---|
| 34 | call Idepack_ConvertDapToIdepackAndIssueCommandFromAH |
---|
| 35 | jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH |
---|
| 36 | %endif |
---|