source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/BootMenuSettingsMenu.asm@ 84

Last change on this file since 84 was 59, checked in by Tomi Tilli, 14 years ago

Changes to Configuration Program v2:

  • Menu structure should now be complete.
File size: 6.1 KB
Line 
1; File name : BootMenuSettingsMenu.asm
2; Project name : XTIDE Universal BIOS Configurator v2
3; Created date : 18.11.2010
4; Last update : 18.11.2010
5; Author : Tomi Tilli
6; Description : "Boot Menu Settings" menu structs and functions.
7
8; Section containing initialized data
9SECTION .data
10
11ALIGN WORD_ALIGN
12g_MenupageForBootMenuSettingsMenu:
13istruc MENUPAGE
14 at MENUPAGE.fnEnter, dw BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
15 at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility
16 at MENUPAGE.wMenuitems, dw 6
17iend
18
19g_MenuitemBootMnuStngsBackToConfigurationMenu:
20istruc MENUITEM
21 at MENUITEM.fnActivate, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility
22 at MENUITEM.szName, dw g_szItemBackToCfgMenu
23 at MENUITEM.szQuickInfo, dw g_szNfoIdeBackToCfgMenu
24 at MENUITEM.szHelp, dw g_szNfoIdeBackToCfgMenu
25 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE
26 at MENUITEM.bType, db TYPE_MENUITEM_PAGEBACK
27iend
28
29g_MenuitemBootMnuStngsDefaultBootDrive:
30istruc MENUITEM
31 at MENUITEM.fnActivate, dw Menuitem_ActivateHexInputForMenuitemInDSSI
32 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteHexValueStringToBufferInESDIfromItemInDSSI
33 at MENUITEM.szName, dw g_szItemBootDrive
34 at MENUITEM.szQuickInfo, dw g_szNfoBootDrive
35 at MENUITEM.szHelp, dw g_szHelpBootDrive
36 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
37 at MENUITEM.bType, db TYPE_MENUITEM_HEX
38 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootDrv
39 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootDrive
40 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 0
41 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 0FFh
42iend
43
44g_MenuitemBootMnuStngsDisplayRomBoot:
45istruc MENUITEM
46 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI
47 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
48 at MENUITEM.szName, dw g_szItemBootRomBoot
49 at MENUITEM.szQuickInfo, dw g_szNfoBootRomBoot
50 at MENUITEM.szHelp, dw g_szHelpBootRomBoot
51 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE
52 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOISE
53 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags
54 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootRomBoot
55 at MENUITEM.itemValue + ITEM_VALUE.szMultichoise, dw g_szMultichoiseBooleanFlag
56 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans
57 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_ROMBOOT
58iend
59
60g_MenuitemBootMnuStngsFloppyDrives:
61istruc MENUITEM
62 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI
63 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI
64 at MENUITEM.szName, dw g_szItemBootFloppyDrvs
65 at MENUITEM.szQuickInfo, dw g_szNfoBootFloppyDrvs
66 at MENUITEM.szHelp, dw g_szHelpBootFloppyDrvs
67 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
68 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOISE
69 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bMinFddCnt
70 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootFloppyDrvs
71 at MENUITEM.itemValue + ITEM_VALUE.szMultichoise, dw g_szMultichoiseBootFloppyDrvs
72 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiseToValueLookup, dw g_rgwChoiseToValueLookupForFloppyDrives
73 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFloppyDrives
74iend
75
76g_MenuitemBootMnuStngsSelectionTimeout:
77istruc MENUITEM
78 at MENUITEM.fnActivate, dw Menuitem_ActivateUnsignedInputForMenuitemInDSSI
79 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteUnsignedValueStringToBufferInESDIfromItemInDSSI
80 at MENUITEM.szName, dw g_szItemBootTimeout
81 at MENUITEM.szQuickInfo, dw g_szNfoBootTimeout
82 at MENUITEM.szHelp, dw g_szHelpBootTimeout
83 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
84 at MENUITEM.bType, db TYPE_MENUITEM_UNSIGNED
85 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootDelay
86 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootTimeout
87 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 0
88 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 60
89iend
90
91g_MenuitemBootMnuStngsSwapBootDriveNumbers:
92istruc MENUITEM
93 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI
94 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
95 at MENUITEM.szName, dw g_szItemBootSwap
96 at MENUITEM.szQuickInfo, dw g_szNfoBootSwap
97 at MENUITEM.szHelp, dw g_szHelpBootSwap
98 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE
99 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOISE
100 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags
101 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootSwap
102 at MENUITEM.itemValue + ITEM_VALUE.szMultichoise, dw g_szMultichoiseBooleanFlag
103 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans
104 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_DRVXLAT
105iend
106
107g_rgwChoiseToValueLookupForFloppyDrives: ; (No translation)
108 dw 0
109 dw 1
110 dw 2
111 dw 3
112 dw 4
113g_rgszValueToStringLookupForFloppyDrives:
114 dw g_szValueBootFloppyDrvsAuto
115 dw g_szValueBootFloppyDrvs1
116 dw g_szValueBootFloppyDrvs2
117 dw g_szValueBootFloppyDrvs3
118 dw g_szValueBootFloppyDrvs4
119
120
121; Section containing code
122SECTION .text
123
124;--------------------------------------------------------------------
125; BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
126; Parameters:
127; SS:BP: Menu handle
128; Returns:
129; Nothing
130; Corrupts registers:
131; All, except BP
132;--------------------------------------------------------------------
133ALIGN JUMP_ALIGN
134BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility:
135 push cs
136 pop ds
137 mov si, g_MenupageForBootMenuSettingsMenu
138 jmp Menupage_ChangeToNewMenupageInDSSI
Note: See TracBrowser for help on using the repository browser.