Changeset 93 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers


Ignore:
Timestamp:
Jan 27, 2011, 6:00:34 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Diagnostic cylinder can no longer be reserved.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm

    r43 r93  
    1 ; File name     :   AH8h_HParams.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   27.9.2007
    4 ; Last update   :   24.9.2010
    5 ; Author        :   Tomi Tilli
     1; Project name  :   XTIDE Universal BIOS
    62; Description   :   Int 13h function AH=8h, Read Disk Drive Parameters.
    73
     
    7369    call    FindDPT_ForDriveNumber
    7470    call    AccessDPT_GetLCHSfromPCHS   ; AX=sectors, BX=cylinders, DX=heads
    75     call    AH8h_ReserveCylinders
    7671    call    AH8h_PackReturnValues
    7772    xor     ax, ax                      ; Clear AH and CF
    78     ret
    79 
    80 
    81 ;--------------------------------------------------------------------
    82 ; Reserves diagnostic cylinder if so configured.
    83 ;
    84 ; AH8h_ReserveCylinders
    85 ;   Parameters:
    86 ;       BX:     Total number of L-CHS cylinders available
    87 ;       DS:DI:  Ptr to DPT
    88 ;   Returns:
    89 ;       BX:     Number of L-CHS cylinders available after reserving
    90 ;   Corrupts registers:
    91 ;       CX
    92 ;--------------------------------------------------------------------
    93 ALIGN JUMP_ALIGN
    94 AH8h_ReserveCylinders:
    95     test    BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_MAXSIZE
    96     jnz     SHORT .Return
    97     dec     bx                          ; Reserve diagnostic cylinder
    98 ALIGN JUMP_ALIGN
    99 .Return:
    10073    ret
    10174
Note: See TracChangeset for help on using the changeset viewer.