Ignore:
Timestamp:
Mar 19, 2011, 8:09:41 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • INT 13h optimizations to save almost 100 bytes.
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
    72; Description   :   Int 13h function AH=11h, Recalibrate.
    83
     
    1510; AH11h_HandlerForRecalibrate
    1611;   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:
    2216;       AH:     BIOS Error code
    2317;       CF:     0 if succesfull, 1 if error
    24 ;       IF:     1
    25 ;   Corrupts registers:
    26 ;       Flags
    2718;--------------------------------------------------------------------
    2819ALIGN JUMP_ALIGN
    2920AH11h_HandlerForRecalibrate:
    30     push    dx
    31     push    cx
    32     push    bx
    33     push    ax
    3421%ifndef USE_186
    3522    call    AH11h_RecalibrateDrive
    36     jmp     Int13h_PopXRegsAndReturn
     23    jmp     Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
    3724%else
    38     push    Int13h_PopXRegsAndReturn
     25    push    Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
    3926    ; Fall through to AH11h_RecalibrateDrive
    4027%endif
     
    4229
    4330;--------------------------------------------------------------------
    44 ; Int 13h function AH=11h, Recalibrate.
    45 ;
    4631; AH11h_HRecalibrate
    4732;   Parameters:
    48 ;       DL:     Drive number
    49 ;       DS:     RAMVARS segment
     33;       DS:DI:  Ptr to DPT (in RAMVARS segment)
    5034;   Returns:
    51 ;       DS:DI:  Ptr to DPT
    5235;       AH:     BIOS Error code
    5336;       CF:     0 if succesfull, 1 if error
     
    5538;       AL, BX, CX, DX
    5639;--------------------------------------------------------------------
    57 ALIGN JUMP_ALIGN
    5840AH11h_RecalibrateDrive:
    5941    ; Recalibrate command is optional, vendor specific and not even
Note: See TracChangeset for help on using the changeset viewer.