Changeset 589 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
r526 r589 156 156 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI 157 157 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 158 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromRawItemInDSSI 158 159 ; Parameters: 159 160 ; DS:SI: Ptr to MENUITEM … … 177 178 178 179 ;-------------------------------------------------------------------- 179 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromItemInDSSI180 ; PrintLookupValueFromAXtoBufferInESDI 180 181 ; Parameters: 181 182 ; AX: Value to print … … 190 191 PrintLookupValueFromAXtoBufferInESDI: 191 192 push si 192 test byte[si+MENUITEM.bFlags], FLG_MENUITEM_CHOICESTRINGS193 jnz .lookupChoice193 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_CHOICESTRINGS 194 jnz SHORT .LookupChoice 194 195 195 196 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgszValueToStringLookup] 196 197 xchg bx, ax 197 . found:198 .Found: 198 199 mov si, [bx] 199 . errorReturn:200 .ErrorReturn: 200 201 call String_CopyDSSItoESDIandGetLengthToCX 201 202 pop si … … 212 213 ; value could be zero, we don't use the .rgwChoiceToValueLookup array to find the end. 213 214 ; 214 . lookupChoice:215 mov bx, [si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup]216 mov si, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup]217 218 . wordLoop:219 cmp ax, [si]220 j z .found215 .LookupChoice: 216 mov bx, [si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup] 217 mov si, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup] 218 219 .WordLoop: 220 cmp ax, [si] 221 je SHORT .Found 221 222 inc bx 222 223 inc bx 223 224 inc si 224 225 inc si 225 cmp word [bx],0226 jn z .wordLoop227 228 mov si, g_szValueUnknownError229 jmp .errorReturn226 cmp WORD [bx], 0 227 jne SHORT .WordLoop 228 229 mov si, g_szValueUnknownError 230 jmp SHORT .ErrorReturn 230 231 231 232 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.