Changeset 148 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH11h_HRecal.asm
- Timestamp:
- Mar 19, 2011, 8:09:41 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH11h_HRecal.asm
r84 r148 1 ; File name : AH11h_HRecal.asm 2 ; Project name : IDE BIOS 3 ; Created date : 28.9.2007 4 ; Last update : 14.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 1 ; Project name : XTIDE Universal BIOS 7 2 ; Description : Int 13h function AH=11h, Recalibrate. 8 3 … … 15 10 ; AH11h_HandlerForRecalibrate 16 11 ; Parameters: 17 ; AH: Bios function 11h 18 ; DL: Drive number 19 ; Parameters loaded by Int13h_Jump: 20 ; DS: RAMVARS segment 21 ; Returns: 12 ; DL: Translated Drive number 13 ; DS:DI: Ptr to DPT (in RAMVARS segment) 14 ; SS:BP: Ptr to INTPACK 15 ; Returns with INTPACK in SS:BP: 22 16 ; AH: BIOS Error code 23 17 ; CF: 0 if succesfull, 1 if error 24 ; IF: 125 ; Corrupts registers:26 ; Flags27 18 ;-------------------------------------------------------------------- 28 19 ALIGN JUMP_ALIGN 29 20 AH11h_HandlerForRecalibrate: 30 push dx31 push cx32 push bx33 push ax34 21 %ifndef USE_186 35 22 call AH11h_RecalibrateDrive 36 jmp Int13h_ PopXRegsAndReturn23 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH 37 24 %else 38 push Int13h_ PopXRegsAndReturn25 push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH 39 26 ; Fall through to AH11h_RecalibrateDrive 40 27 %endif … … 42 29 43 30 ;-------------------------------------------------------------------- 44 ; Int 13h function AH=11h, Recalibrate.45 ;46 31 ; AH11h_HRecalibrate 47 32 ; Parameters: 48 ; DL: Drive number 49 ; DS: RAMVARS segment 33 ; DS:DI: Ptr to DPT (in RAMVARS segment) 50 34 ; Returns: 51 ; DS:DI: Ptr to DPT52 35 ; AH: BIOS Error code 53 36 ; CF: 0 if succesfull, 1 if error … … 55 38 ; AL, BX, CX, DX 56 39 ;-------------------------------------------------------------------- 57 ALIGN JUMP_ALIGN58 40 AH11h_RecalibrateDrive: 59 41 ; Recalibrate command is optional, vendor specific and not even
Note:
See TracChangeset
for help on using the changeset viewer.