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

Last change on this file since 108 was 108, checked in by krille_n_@…, 14 years ago

Fixed a spelling mistake and cleaned the source some. No changes to the actual code.

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