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
|
---|
9 | SECTION .data
|
---|
10 |
|
---|
11 | ALIGN WORD_ALIGN
|
---|
12 | g_MenupageForBootMenuSettingsMenu:
|
---|
13 | istruc MENUPAGE
|
---|
14 | at MENUPAGE.fnEnter, dw BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
|
---|
15 | at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility
|
---|
16 | at MENUPAGE.wMenuitems, dw 6
|
---|
17 | iend
|
---|
18 |
|
---|
19 | g_MenuitemBootMnuStngsBackToConfigurationMenu:
|
---|
20 | istruc 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
|
---|
27 | iend
|
---|
28 |
|
---|
29 | g_MenuitemBootMnuStngsDefaultBootDrive:
|
---|
30 | istruc 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
|
---|
42 | iend
|
---|
43 |
|
---|
44 | g_MenuitemBootMnuStngsDisplayRomBoot:
|
---|
45 | istruc 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
|
---|
58 | iend
|
---|
59 |
|
---|
60 | g_MenuitemBootMnuStngsFloppyDrives:
|
---|
61 | istruc 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
|
---|
74 | iend
|
---|
75 |
|
---|
76 | g_MenuitemBootMnuStngsSelectionTimeout:
|
---|
77 | istruc 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
|
---|
89 | iend
|
---|
90 |
|
---|
91 | g_MenuitemBootMnuStngsSwapBootDriveNumbers:
|
---|
92 | istruc 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
|
---|
105 | iend
|
---|
106 |
|
---|
107 | g_rgwChoiseToValueLookupForFloppyDrives: ; (No translation)
|
---|
108 | dw 0
|
---|
109 | dw 1
|
---|
110 | dw 2
|
---|
111 | dw 3
|
---|
112 | dw 4
|
---|
113 | g_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
|
---|
122 | SECTION .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 | ;--------------------------------------------------------------------
|
---|
133 | ALIGN JUMP_ALIGN
|
---|
134 | BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility:
|
---|
135 | push cs
|
---|
136 | pop ds
|
---|
137 | mov si, g_MenupageForBootMenuSettingsMenu
|
---|
138 | jmp Menupage_ChangeToNewMenupageInDSSI
|
---|