Ignore:
Timestamp:
Mar 4, 2012, 1:33:52 AM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Commit 1/2 (Library, Configurators and Serial Server):

  • Changed Emulate.inc so that making 286 and 386 versions now works. Additionally, only one processor type define is needed in the makefile.
  • Minor optimizations.
  • Fixed spelling and did some cleaning.
File:
1 edited

Legend:

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

    r286 r293  
    3636ALIGN JUMP_ALIGN
    3737MenuitemPrint_NameWithPossibleValueFromDSSI:
    38     eMOVZX  bx, BYTE [si+MENUITEM.bType]
     38    eMOVZX  bx, [si+MENUITEM.bType]
    3939    cmp     bl, TYPE_MENUITEM_ACTION
    4040    ja      SHORT .PrintNameAndValueFromDSSI
     
    147147;   Corrupts registers:
    148148;       AX, BX, CX
    149 ;--------------------------------------------------------------------   
     149;--------------------------------------------------------------------
    150150ALIGN JUMP_ALIGN
    151151MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI:
     
    170170;   Corrupts registers:
    171171;       AX, BX, CX
    172 ;--------------------------------------------------------------------   
     172;--------------------------------------------------------------------
    173173ALIGN JUMP_ALIGN
    174174PrintLookupValueFromAXtoBufferInESDI:
    175175    push    si
    176176    test    byte [si+MENUITEM.bFlags], FLG_MENUITEM_CHOICESTRINGS
    177     jnz     .lookupChoice   
    178        
     177    jnz     .lookupChoice
     178
    179179    add     ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgszValueToStringLookup]
    180180    xchg    bx, ax
    181 .found: 
     181.found:
    182182    mov     si, [bx]
    183183.errorReturn:
     
    187187
    188188;
    189 ; With FLG_MENUITEM_CHOICESTRINGS, the array at .rgszChoiceToStringLookup is based on the 
     189; With FLG_MENUITEM_CHOICESTRINGS, the array at .rgszChoiceToStringLookup is based on the
    190190; Choice number (offset within .rgwChoiceToValueLookup) instead of the value stored.
    191191; Here, we scan the .rgwChoiceToValueLookup array until we find the value there, and then
    192 ; use the same offset in .rgszChoiceToStringLookup.  If we don't find the value, we 
    193 ; return an "Error!" string instead. 
     192; use the same offset in .rgszChoiceToStringLookup.  If we don't find the value, we
     193; return an "Error!" string instead.
    194194;
    195195; Note that the pointer array at .rgszChoiceToStringLookup must be NULL terminated.  Since the
     
    197197;
    198198.lookupChoice:
    199     mov     bx,[si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup]     
     199    mov     bx,[si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup]
    200200    mov     si,[si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup]
    201        
     201
    202202.wordLoop:
    203203    cmp     ax,[si]
     
    222222;   Corrupts registers:
    223223;       AX, BX, CX
    224 ;--------------------------------------------------------------------   
     224;--------------------------------------------------------------------
    225225ALIGN JUMP_ALIGN
    226226MenuitemPrint_WriteUnsignedValueStringToBufferInESDIfromItemInDSSI:
     
    244244;   Corrupts registers:
    245245;       AX, BX, CX
    246 ;--------------------------------------------------------------------   
     246;--------------------------------------------------------------------
    247247ALIGN JUMP_ALIGN
    248248MenuitemPrint_WriteHexValueStringToBufferInESDIfromItemInDSSI:
Note: See TracChangeset for help on using the changeset viewer.