1 | ; Project name : XTIDE Universal BIOS Configurator v2
|
---|
2 | ; Description : "Boot Menu Settings" menu structs and functions.
|
---|
3 |
|
---|
4 | ; Section containing initialized data
|
---|
5 | SECTION .data
|
---|
6 |
|
---|
7 | ALIGN WORD_ALIGN
|
---|
8 | g_MenupageForBootMenuSettingsMenu:
|
---|
9 | istruc MENUPAGE
|
---|
10 | at MENUPAGE.fnEnter, dw BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
|
---|
11 | at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility
|
---|
12 | at MENUPAGE.wMenuitems, dw 7
|
---|
13 | iend
|
---|
14 |
|
---|
15 | g_MenuitemBootMnuStngsBackToConfigurationMenu:
|
---|
16 | istruc 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
|
---|
23 | iend
|
---|
24 |
|
---|
25 | g_MenuitemBootMnuStngsDefaultBootDrive:
|
---|
26 | istruc 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
|
---|
38 | iend
|
---|
39 |
|
---|
40 | g_MenuitemBootMnuStngsDisplayMode:
|
---|
41 | istruc MENUITEM
|
---|
42 | at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
|
---|
43 | at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI
|
---|
44 | at MENUITEM.szName, dw g_szItemBootDispMode
|
---|
45 | at MENUITEM.szQuickInfo, dw g_szNfoDispMode
|
---|
46 | at MENUITEM.szHelp, dw g_szNfoDispMode
|
---|
47 | at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE
|
---|
48 | at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE
|
---|
49 | at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wDisplayMode
|
---|
50 | at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootDispMode
|
---|
51 | at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBootDispMode
|
---|
52 | at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForDisplayModes
|
---|
53 | at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForDisplayModes
|
---|
54 | iend
|
---|
55 |
|
---|
56 | g_MenuitemBootMnuStngsFloppyDrives:
|
---|
57 | istruc 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 NULL
|
---|
69 | at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFloppyDrives
|
---|
70 | iend
|
---|
71 |
|
---|
72 | g_MenuitemBootMnuStngsSelectionTimeout:
|
---|
73 | istruc 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
|
---|
80 | at MENUITEM.bType, db TYPE_MENUITEM_UNSIGNED
|
---|
81 | at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wBootTimeout
|
---|
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 1092
|
---|
85 | iend
|
---|
86 |
|
---|
87 | g_MenuitemBootMnuStngsSwapBootDriveNumbers:
|
---|
88 | istruc 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
|
---|
101 | iend
|
---|
102 |
|
---|
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
|
---|
118 |
|
---|
119 | g_rgwChoiceToValueLookupForDisplayModes:
|
---|
120 | dw DEFAULT_TEXT_MODE
|
---|
121 | dw CGA_TEXT_MODE_BW40
|
---|
122 | dw CGA_TEXT_MODE_CO40
|
---|
123 | dw CGA_TEXT_MODE_BW80
|
---|
124 | dw CGA_TEXT_MODE_CO80
|
---|
125 | dw MDA_TEXT_MODE
|
---|
126 | g_rgszValueToStringLookupForDisplayModes:
|
---|
127 | dw g_szValueBootDispModeBW40
|
---|
128 | dw g_szValueBootDispModeCO40
|
---|
129 | dw g_szValueBootDispModeBW80
|
---|
130 | dw g_szValueBootDispModeCO80
|
---|
131 | dw g_szValueBootDispModeDefault
|
---|
132 | dw NULL
|
---|
133 | dw NULL
|
---|
134 | dw g_szValueBootDispModeMono
|
---|
135 |
|
---|
136 | g_rgszValueToStringLookupForFloppyDrives:
|
---|
137 | dw g_szValueBootFloppyDrvsAuto
|
---|
138 | dw g_szValueBootFloppyDrvs1
|
---|
139 | dw g_szValueBootFloppyDrvs2
|
---|
140 | dw g_szValueBootFloppyDrvs3
|
---|
141 | dw g_szValueBootFloppyDrvs4
|
---|
142 |
|
---|
143 |
|
---|
144 | ; Section containing code
|
---|
145 | SECTION .text
|
---|
146 |
|
---|
147 | ;--------------------------------------------------------------------
|
---|
148 | ; BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
|
---|
149 | ; Parameters:
|
---|
150 | ; SS:BP: Menu handle
|
---|
151 | ; Returns:
|
---|
152 | ; Nothing
|
---|
153 | ; Corrupts registers:
|
---|
154 | ; All, except BP
|
---|
155 | ;--------------------------------------------------------------------
|
---|
156 | ALIGN JUMP_ALIGN
|
---|
157 | BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility:
|
---|
158 | push cs
|
---|
159 | pop ds
|
---|
160 | mov si, g_MenupageForBootMenuSettingsMenu
|
---|
161 | jmp Menupage_ChangeToNewMenupageInDSSI
|
---|