Ignore:
Timestamp:
Nov 21, 2011, 11:01:08 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Adding proper serial port support to the Configurator, which required some minor changes elsewhere. Also added an option, off by default, to automatically scan for serial drives at the end of normal drive detection (no ALT key required, although that is still available if the option is off).

File:
1 edited

Legend:

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

    r181 r199  
    190190ALIGN JUMP_ALIGN
    191191.TranslateChoiceToValueUsingLookupTable:
     192;
     193; if the lookup pointer is NULL, no translation is needed
     194;
     195    mov     bx, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup]
     196    test    bx, bx
     197    jz      .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI
     198       
    192199    shl     ax, 1           ; Shift for WORD lookup
    193     add     ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup]
    194     xchg    bx, ax
     200    add     bx, ax
    195201    mov     ax, [bx]        ; Lookup complete
    196202    ; Fall to .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI
     
    210216ALIGN JUMP_ALIGN
    211217.StoreByteOrWordValueFromAXtoESDIwithItemInDSSI:
     218    push    bx
     219    mov     bx,[si+MENUITEM.itemValue+ITEM_VALUE.fnValueWriter]
     220    test    bx,bx
     221    jz      SHORT .NoWriter
     222
     223    call    bx     
     224
     225.NoWriter:
     226    pop     bx
    212227    test    BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_BYTEVALUE
    213228    jnz     SHORT .StoreByteFromAL
    214 
     229       
    215230    mov     [es:di+1], ah
    216231ALIGN JUMP_ALIGN
     
    269284    push    es
    270285    push    di
     286    push    bx
    271287    call    GetConfigurationBufferToESDIforMenuitemInDSSI
    272288    add     di, [si+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
    273289    mov     ax, [es:di]
     290
     291    mov     bx, [si+MENUITEM.itemValue+ITEM_VALUE.fnValueReader]
     292    test    bx,bx
     293    jz      SHORT .NoReader
     294
     295    call    bx
     296
     297.NoReader:     
     298    pop     bx
    274299    pop     di
    275300    pop     es
Note: See TracChangeset for help on using the changeset viewer.