Changeset 290 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Mar 2, 2012, 1:30:18 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/BootMenuSettingsMenu.asm
r199 r290 10 10 at MENUPAGE.fnEnter, dw BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility 11 11 at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility 12 at MENUPAGE.wMenuitems, dw 712 at MENUPAGE.wMenuitems, dw 8 13 13 iend 14 14 … … 23 23 iend 24 24 25 g_MenuitemBootMnuStngsDisplayMode: 26 istruc MENUITEM 27 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 28 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI 29 at MENUITEM.szName, dw g_szItemBootDispMode 30 at MENUITEM.szQuickInfo, dw g_szNfoDispMode 31 at MENUITEM.szHelp, dw g_szNfoDispMode 32 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE 33 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 34 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wDisplayMode 35 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootDispMode 36 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBootDispMode 37 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForDisplayModes 38 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForDisplayModes 39 iend 40 41 g_MenuitemBootMnuStngsFloppyDrives: 42 istruc MENUITEM 43 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 44 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI 45 at MENUITEM.szName, dw g_szItemBootFloppyDrvs 46 at MENUITEM.szQuickInfo, dw g_szNfoBootFloppyDrvs 47 at MENUITEM.szHelp, dw g_szHelpBootFloppyDrvs 48 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE 49 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 50 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bMinFddCnt 51 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootFloppyDrvs 52 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBootFloppyDrvs 53 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw NULL 54 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFloppyDrives 55 iend 56 57 g_MenuitemBootMenuSerialScanDetect: 58 istruc MENUITEM 59 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 60 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 61 at MENUITEM.szName, dw g_szItemSerialDetect 62 at MENUITEM.szQuickInfo, dw g_szNfoSerialDetect 63 at MENUITEM.szHelp, dw g_szHelpSerialDetect 64 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE 65 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 66 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags 67 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgSerialDetect 68 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag 69 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans 70 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_SERIAL_SCANDETECT 71 iend 72 73 g_MenuitemBootMnuStngsEnableBootMenu: 74 istruc MENUITEM 75 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 76 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 77 at MENUITEM.szName, dw g_szItemBootEnableMenu 78 at MENUITEM.szQuickInfo, dw g_szNfoBootEnableMenu 79 at MENUITEM.szHelp, dw g_szNfoBootEnableMenu 80 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU 81 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 82 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wfDisplayBootMenu 83 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootEnableMenu 84 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag 85 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForEnableBootMenu 86 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans 87 at MENUITEM.itemValue + ITEM_VALUE.fnValueReader, dw ValueReaderForEnableBootMenu 88 iend 89 25 90 g_MenuitemBootMnuStngsDefaultBootDrive: 26 91 istruc MENUITEM … … 30 95 at MENUITEM.szQuickInfo, dw g_szNfoBootDrive 31 96 at MENUITEM.szHelp, dw g_szHelpBootDrive 32 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_BYTEVALUE97 at MENUITEM.bFlags, db FLG_MENUITEM_BYTEVALUE 33 98 at MENUITEM.bType, db TYPE_MENUITEM_HEX 34 99 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootDrv … … 38 103 iend 39 104 40 g_MenuitemBootMnuStngsDisplayMode:41 istruc MENUITEM42 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI43 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI44 at MENUITEM.szName, dw g_szItemBootDispMode45 at MENUITEM.szQuickInfo, dw g_szNfoDispMode46 at MENUITEM.szHelp, dw g_szNfoDispMode47 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE48 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE49 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wDisplayMode50 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootDispMode51 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBootDispMode52 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForDisplayModes53 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForDisplayModes54 iend55 56 g_MenuitemBootMnuStngsFloppyDrives:57 istruc MENUITEM58 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI59 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI60 at MENUITEM.szName, dw g_szItemBootFloppyDrvs61 at MENUITEM.szQuickInfo, dw g_szNfoBootFloppyDrvs62 at MENUITEM.szHelp, dw g_szHelpBootFloppyDrvs63 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE64 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE65 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bMinFddCnt66 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootFloppyDrvs67 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBootFloppyDrvs68 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw NULL69 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFloppyDrives70 iend71 72 105 g_MenuitemBootMnuStngsSelectionTimeout: 73 106 istruc MENUITEM … … 77 110 at MENUITEM.szQuickInfo, dw g_szNfoBootTimeout 78 111 at MENUITEM.szHelp, dw g_szHelpBootTimeout 79 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE112 at MENUITEM.bFlags, db NULL 80 113 at MENUITEM.bType, db TYPE_MENUITEM_UNSIGNED 81 114 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wBootTimeout 82 115 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootTimeout 83 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 0116 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 2 84 117 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 1092 85 118 iend … … 92 125 at MENUITEM.szQuickInfo, dw g_szNfoBootSwap 93 126 at MENUITEM.szHelp, dw g_szHelpBootSwap 94 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_FLAGVALUE127 at MENUITEM.bFlags, db FLG_MENUITEM_FLAGVALUE 95 128 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 96 129 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags … … 101 134 iend 102 135 103 g_MenuitemBootMenuSerialScanDetect: 104 istruc MENUITEM 105 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 106 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 107 at MENUITEM.szName, dw g_szItemSerialDetect 108 at MENUITEM.szQuickInfo, dw g_szNfoSerialDetect 109 at MENUITEM.szHelp, dw g_szHelpSerialDetect 110 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE 111 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 112 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags 113 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgSerialDetect 114 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag 115 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans 116 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_SERIAL_SCANDETECT 117 iend 136 137 g_rgwChoiceToValueLookupForEnableBootMenu: 138 dw FALSE 139 dw BOOT_MENU_DEFAULT_TIMEOUT 118 140 119 141 g_rgwChoiceToValueLookupForDisplayModes: … … 158 180 push cs 159 181 pop ds 182 call EnableOrDisableBootMenuSettings 160 183 mov si, g_MenupageForBootMenuSettingsMenu 161 184 jmp Menupage_ChangeToNewMenupageInDSSI 185 186 187 ;-------------------------------------------------------------------- 188 ; EnableOrDisableBootMenuSettings 189 ; Parameters: 190 ; SS:BP: Menu handle 191 ; Returns: 192 ; Nothing 193 ; Corrupts registers: 194 ; AX, BX 195 ;-------------------------------------------------------------------- 196 ALIGN JUMP_ALIGN 197 EnableOrDisableBootMenuSettings: 198 mov bx, [cs:g_MenuitemBootMnuStngsEnableBootMenu+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 199 call Buffers_GetRomvarsValueToAXfromOffsetInBX 200 test ax, ax 201 mov al, FLG_MENUITEM_VISIBLE 202 jz SHORT .DisableBootMenuSettings 203 204 ; Enable boot menu related 205 or [g_MenuitemBootMnuStngsDefaultBootDrive+MENUITEM.bFlags], al 206 or [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al 207 or [g_MenuitemBootMnuStngsSwapBootDriveNumbers+MENUITEM.bFlags], al 208 ret 209 210 .DisableBootMenuSettings: 211 not ax 212 and [g_MenuitemBootMnuStngsDefaultBootDrive+MENUITEM.bFlags], al 213 and [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al 214 and [g_MenuitemBootMnuStngsSwapBootDriveNumbers+MENUITEM.bFlags], al 215 ret 216 217 218 ;-------------------------------------------------------------------- 219 ; MENUITEM value reader functions 220 ; Parameters: 221 ; AX: Value from MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset 222 ; DS:SI: Ptr to MENUITEM 223 ; ES:DI: Ptr to value variable 224 ; Returns: 225 ; AX: Value with possible modifications 226 ; Corrupts registers: 227 ; Nothing 228 ;-------------------------------------------------------------------- 229 ALIGN JUMP_ALIGN 230 ValueReaderForEnableBootMenu: 231 test ax, ax 232 jz SHORT .NoNeedToModify 233 mov ax, TRUE<<1 234 .NoNeedToModify: 235 ret
Note:
See TracChangeset
for help on using the changeset viewer.