Changeset 293 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
r286 r293 36 36 ALIGN JUMP_ALIGN 37 37 MenuitemPrint_NameWithPossibleValueFromDSSI: 38 eMOVZX bx, BYTE[si+MENUITEM.bType]38 eMOVZX bx, [si+MENUITEM.bType] 39 39 cmp bl, TYPE_MENUITEM_ACTION 40 40 ja SHORT .PrintNameAndValueFromDSSI … … 147 147 ; Corrupts registers: 148 148 ; AX, BX, CX 149 ;-------------------------------------------------------------------- 149 ;-------------------------------------------------------------------- 150 150 ALIGN JUMP_ALIGN 151 151 MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI: … … 170 170 ; Corrupts registers: 171 171 ; AX, BX, CX 172 ;-------------------------------------------------------------------- 172 ;-------------------------------------------------------------------- 173 173 ALIGN JUMP_ALIGN 174 174 PrintLookupValueFromAXtoBufferInESDI: 175 175 push si 176 176 test byte [si+MENUITEM.bFlags], FLG_MENUITEM_CHOICESTRINGS 177 jnz .lookupChoice 178 177 jnz .lookupChoice 178 179 179 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgszValueToStringLookup] 180 180 xchg bx, ax 181 .found: 181 .found: 182 182 mov si, [bx] 183 183 .errorReturn: … … 187 187 188 188 ; 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 190 190 ; Choice number (offset within .rgwChoiceToValueLookup) instead of the value stored. 191 191 ; 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. 194 194 ; 195 195 ; Note that the pointer array at .rgszChoiceToStringLookup must be NULL terminated. Since the … … 197 197 ; 198 198 .lookupChoice: 199 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup] 199 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup] 200 200 mov si,[si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup] 201 201 202 202 .wordLoop: 203 203 cmp ax,[si] … … 222 222 ; Corrupts registers: 223 223 ; AX, BX, CX 224 ;-------------------------------------------------------------------- 224 ;-------------------------------------------------------------------- 225 225 ALIGN JUMP_ALIGN 226 226 MenuitemPrint_WriteUnsignedValueStringToBufferInESDIfromItemInDSSI: … … 244 244 ; Corrupts registers: 245 245 ; AX, BX, CX 246 ;-------------------------------------------------------------------- 246 ;-------------------------------------------------------------------- 247 247 ALIGN JUMP_ALIGN 248 248 MenuitemPrint_WriteHexValueStringToBufferInESDIfromItemInDSSI:
Note:
See TracChangeset
for help on using the changeset viewer.