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/AH10h_HReady.asm

    r3 r148  
    1 ; File name     :   AH10h_HReady.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   9.12.2007
    4 ; Last update   :   12.4.2010
    5 ; Author        :   Tomi Tilli
     1; Project name  :   XTIDE Universal BIOS
    62; Description   :   Int 13h function AH=10h, Check Drive Ready.
    73
     
    1410; AH10h_HandlerForCheckDriveReady
    1511;   Parameters:
    16 ;       AH:     Bios function 10h
    17 ;       DL:     Drive number (8xh)
    18 ;   Parameters loaded by Int13h_Jump:
    19 ;       DS:     RAMVARS segment
    20 ;   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:
    2116;       AH:     Int 13h return status
    2217;       CF:     0 if succesfull, 1 if error
    23 ;       IF:     1
    24 ;   Corrupts registers:
    25 ;       Flags
    2618;--------------------------------------------------------------------
    2719ALIGN JUMP_ALIGN
    2820AH10h_HandlerForCheckDriveReady:
    29     ; Save registers
    30     push    dx
    31     push    cx
    32     push    bx
    33     push    ax
    34 
    35     ; Wait until drive is ready
    36     call    FindDPT_ForDriveNumber      ; DS:DI now points to DPT
    3721    call    HStatus_WaitRdyDefTime
    38     jmp     Int13h_PopXRegsAndReturn
     22    xor     ah, ah
     23    jmp     Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
Note: See TracChangeset for help on using the changeset viewer.