Changeset 116 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Feb 26, 2011, 11:55:06 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to all parts of the project:

  • Removed a redundant macro (HPIO_NORMALIZE_PTR)
  • Deleted XTIDE_Universal_BIOS/Inc/BiosData.inc since that was also redundant.
  • Size optimization: Changed the LOAD_BDA_SEGMENT_TO macro to use the stack on 186+ processors (the old behaviour can still be used where needed).
  • Made other minor size optimizations and cleanups to various functions, mostly in the Int13h handler.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r99 r116  
    3434    jz      SHORT .InitializeRamvars    ; No need to steal RAM
    3535
    36     LOAD_BDA_SEGMENT_TO ds, ax          ; Zero AX
     36    LOAD_BDA_SEGMENT_TO ds, ax, !       ; Zero AX
    3737    mov     al, [cs:ROMVARS.bStealSize]
    3838    sub     [BDA.wBaseMem], ax
     
    197197;   Corrupts registers:
    198198;       Nothing
    199 ;--------------------------------------------------------------------   
     199;--------------------------------------------------------------------
    200200ALIGN JUMP_ALIGN
    201201RamVars_GetHardDiskCountFromBDAtoCX:
     
    203203    push    dx
    204204
    205     LOAD_BDA_SEGMENT_TO es, cx          ; Zero CX
     205    LOAD_BDA_SEGMENT_TO es, cx, !       ; Zero CX
    206206    call    RamVars_GetCountOfKnownDrivesToDL
    207207    MAX_U   dl, [es:BDA.bHDCount]
     
    220220;   Corrupts registers:
    221221;       Nothing
    222 ;--------------------------------------------------------------------   
     222;--------------------------------------------------------------------
    223223ALIGN JUMP_ALIGN
    224224RamVars_GetCountOfKnownDrivesToDL:
     
    237237;   Corrupts registers:
    238238;       Nothing
    239 ;--------------------------------------------------------------------   
     239;--------------------------------------------------------------------
    240240RamVars_GetIdeControllerCountToCX:
    241241    eMOVZX  cx, BYTE [cs:ROMVARS.bIdeCnt]
Note: See TracChangeset for help on using the changeset viewer.