Ignore:
Timestamp:
Jan 31, 2011, 11:27:17 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Even more initialization code inlining.
File:
1 edited

Legend:

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

    r97 r99  
    171171
    172172;--------------------------------------------------------------------
    173 ; Increments hard disk count to RAMVARS.
    174 ;
    175173; RamVars_IncrementHardDiskCount
    176174;   Parameters:
     
    182180;       Nothing
    183181;--------------------------------------------------------------------
    184 ALIGN JUMP_ALIGN
    185182RamVars_IncrementHardDiskCount:
    186183    inc     BYTE [RAMVARS.bDrvCnt]      ; Increment drive count to RAMVARS
     
    188185    ja      SHORT .Return               ;  If so, return
    189186    mov     [RAMVARS.bFirstDrv], dl     ; Store first drive number
    190 ALIGN JUMP_ALIGN
    191187.Return:
    192188    ret
     
    242238;       Nothing
    243239;--------------------------------------------------------------------   
    244 ALIGN JUMP_ALIGN
    245240RamVars_GetIdeControllerCountToCX:
    246     mov     cx, 1                   ; Assume lite mode (one controller)
    247     test    BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE
    248     jz      SHORT .Return
    249     mov     cl, [cs:ROMVARS.bIdeCnt]
    250 ALIGN JUMP_ALIGN, ret
    251 .Return:
    252     ret
     241    eMOVZX  cx, BYTE [cs:ROMVARS.bIdeCnt]
     242    ret
Note: See TracChangeset for help on using the changeset viewer.