Changeset 199 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
- Timestamp:
- Nov 21, 2011, 11:01:08 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r181 r199 190 190 ALIGN JUMP_ALIGN 191 191 .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 192 199 shl ax, 1 ; Shift for WORD lookup 193 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup] 194 xchg bx, ax 200 add bx, ax 195 201 mov ax, [bx] ; Lookup complete 196 202 ; Fall to .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI … … 210 216 ALIGN JUMP_ALIGN 211 217 .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 212 227 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_BYTEVALUE 213 228 jnz SHORT .StoreByteFromAL 214 229 215 230 mov [es:di+1], ah 216 231 ALIGN JUMP_ALIGN … … 269 284 push es 270 285 push di 286 push bx 271 287 call GetConfigurationBufferToESDIforMenuitemInDSSI 272 288 add di, [si+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 273 289 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 274 299 pop di 275 300 pop es
Note: See TracChangeset
for help on using the changeset viewer.