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/Common/HCapacity.asm

    r117 r148  
    1313;       DL:     Drive number
    1414;       DS:     RAMVARS segment
     15;       DS:DI:  Ptr to DPT (HCapacity_GetSectorCountFromOurAH08h)
    1516;   Returns:
    1617;       DX:AX:  Total sector count
     
    2122ALIGN JUMP_ALIGN
    2223HCapacity_GetSectorCountFromForeignAH08h:
    23     mov     ah, 08h         ; Get Drive Parameters
     24    mov     ah, GET_DRIVE_PARAMETERS
    2425    call    Int13h_CallPreviousInt13hHandler
    25     jmp     SHORT HCapacity_ConvertAH08hReturnValuesToSectorCount
     26    jmp     SHORT ConvertAH08hReturnValuesToSectorCount
    2627
    2728ALIGN JUMP_ALIGN
    2829HCapacity_GetSectorCountFromOurAH08h:
    29     push    di
    3030    call    AH8h_GetDriveParameters
    31     pop     di
    32     ; Fall to HCapacity_ConvertAH08hReturnValuesToSectorCount
     31    ; Fall to ConvertAH08hReturnValuesToSectorCount
    3332
    34 ALIGN JUMP_ALIGN
    35 HCapacity_ConvertAH08hReturnValuesToSectorCount:
     33ConvertAH08hReturnValuesToSectorCount:
    3634    call    HAddress_ExtractLCHSFromBiosParams
    3735    xor     ax, ax          ; Zero AX
Note: See TracChangeset for help on using the changeset viewer.