Ignore:
Timestamp:
Dec 5, 2011, 11:23:22 AM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Configurator v2:

  • Number of IDE controllers can now be properly configured for lite mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm

    r145 r204  
    229229
    230230;--------------------------------------------------------------------
     231; Buffers_GetIdeControllerCountToCX
     232;   Parameters:
     233;       SS:BP:  Menu handle
     234;   Returns:
     235;       CX:     Number of IDE controllers to configure
     236;       ES:DI:  Ptr to file buffer
     237;   Corrupts registers:
     238;       AX
     239;--------------------------------------------------------------------
     240ALIGN JUMP_ALIGN
     241Buffers_GetIdeControllerCountToCX:
     242    call    Buffers_GetFileBufferToESDI
     243    mov     al, [es:di+ROMVARS.bIdeCnt]
     244
     245    ; Limit controller count for lite mode
     246    test    BYTE [es:di+ROMVARS.wFlags], FLG_ROMVARS_FULLMODE
     247    jnz     SHORT .ReturnControllerCountInCX
     248    MIN_U   al, MAX_LITE_MODE_CONTROLLERS
     249
     250.ReturnControllerCountInCX:
     251    cbw     ; A maximum of 127 controllers should be sufficient
     252    xchg    cx, ax
     253    ret
     254
     255
     256;--------------------------------------------------------------------
    231257; Buffers_GetFileBufferToESDI
    232258; Buffers_GetFlashComparisonBufferToESDI
Note: See TracChangeset for help on using the changeset viewer.