Changeset 108 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
- Timestamp:
- Feb 18, 2011, 2:50:16 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r107 r108 22 22 23 23 ;-------------------------------------------------------------------- 24 ; Menuitem_ActivateMultichoi seSelectionForMenuitemInDSSI24 ; Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 25 25 ; Parameters: 26 26 ; DS:SI: Ptr to MENUITEM … … 31 31 ;-------------------------------------------------------------------- 32 32 ALIGN JUMP_ALIGN 33 Menuitem_ActivateMultichoi seSelectionForMenuitemInDSSI:33 Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI: 34 34 call Registers_CopyDSSItoESDI 35 35 … … 37 37 call Memory_ReserveCXbytesFromStackToDSSI 38 38 call InitializeDialogInputInDSSIfromMenuitemInESDI 39 mov ax, [es:di+MENUITEM.itemValue + ITEM_VALUE.szMultichoi se]39 mov ax, [es:di+MENUITEM.itemValue + ITEM_VALUE.szMultichoice] 40 40 mov [si+DIALOG_INPUT.fszItems], ax 41 41 push di … … 133 133 ; Menuitem_StoreValueFromAXtoMenuitemInDSSI 134 134 ; Parameters: 135 ; AX: Value or multichoi se selection to store135 ; AX: Value or multichoice selection to store 136 136 ; DS:SI: Ptr to MENUITEM 137 137 ; SS:BP: Menu handle … … 158 158 dw .InvalidItemType ; TYPE_MENUITEM_PAGENEXT 159 159 dw .InvalidItemType ; TYPE_MENUITEM_ACTION 160 dw .StoreMultichoi seValueFromAXtoESDIwithItemInDSSI ; TYPE_MENUITEM_MULTICHOISE160 dw .StoreMultichoiceValueFromAXtoESDIwithItemInDSSI ; TYPE_MENUITEM_MULTICHOICE 161 161 dw .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI ; TYPE_MENUITEM_UNSIGNED 162 162 dw .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI ; TYPE_MENUITEM_HEX 163 163 164 164 ;-------------------------------------------------------------------- 165 ; .StoreMultichoi seValueFromAXtoESDIwithItemInDSSI166 ; Parameters: 167 ; AX: Multichoi se selection (index)165 ; .StoreMultichoiceValueFromAXtoESDIwithItemInDSSI 166 ; Parameters: 167 ; AX: Multichoice selection (index) 168 168 ; DS:SI: Ptr to MENUITEM 169 169 ; ES:DI: Ptr to value variable … … 175 175 ;-------------------------------------------------------------------- 176 176 ALIGN JUMP_ALIGN 177 .StoreMultichoi seValueFromAXtoESDIwithItemInDSSI:177 .StoreMultichoiceValueFromAXtoESDIwithItemInDSSI: 178 178 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_FLAGVALUE 179 jz SHORT .TranslateChoi seToValueUsingLookupTable179 jz SHORT .TranslateChoiceToValueUsingLookupTable 180 180 181 181 test ax, ax ; Setting item flag? … … 191 191 192 192 ALIGN JUMP_ALIGN 193 .TranslateChoi seToValueUsingLookupTable:193 .TranslateChoiceToValueUsingLookupTable: 194 194 shl ax, 1 ; Shift for WORD lookup 195 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoi seToValueLookup]195 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup] 196 196 xchg bx, ax 197 197 mov ax, [bx] ; Lookup complete
Note: See TracChangeset
for help on using the changeset viewer.