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 6
|
---|
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_MenuitemBootMnuStngsFloppyDrives:
|
---|
41 | istruc MENUITEM
|
---|
42 | at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
|
---|
43 | at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI
|
---|
44 | at MENUITEM.szName, dw g_szItemBootFloppyDrvs
|
---|
45 | at MENUITEM.szQuickInfo, dw g_szNfoBootFloppyDrvs
|
---|
46 | at MENUITEM.szHelp, dw g_szHelpBootFloppyDrvs
|
---|
47 | at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
|
---|
48 | at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE
|
---|
49 | at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bMinFddCnt
|
---|
50 | at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootFloppyDrvs
|
---|
51 | at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBootFloppyDrvs
|
---|
52 | at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForFloppyDrives
|
---|
53 | at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFloppyDrives
|
---|
54 | iend
|
---|
55 |
|
---|
56 | g_MenuitemBootMnuStngsSelectionTimeout:
|
---|
57 | istruc MENUITEM
|
---|
58 | at MENUITEM.fnActivate, dw Menuitem_ActivateUnsignedInputForMenuitemInDSSI
|
---|
59 | at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteUnsignedValueStringToBufferInESDIfromItemInDSSI
|
---|
60 | at MENUITEM.szName, dw g_szItemBootTimeout
|
---|
61 | at MENUITEM.szQuickInfo, dw g_szNfoBootTimeout
|
---|
62 | at MENUITEM.szHelp, dw g_szHelpBootTimeout
|
---|
63 | at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
|
---|
64 | at MENUITEM.bType, db TYPE_MENUITEM_UNSIGNED
|
---|
65 | at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootDelay
|
---|
66 | at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootTimeout
|
---|
67 | at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 0
|
---|
68 | at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 60
|
---|
69 | iend
|
---|
70 |
|
---|
71 | g_MenuitemBootMnuStngsSwapBootDriveNumbers:
|
---|
72 | istruc MENUITEM
|
---|
73 | at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
|
---|
74 | at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
|
---|
75 | at MENUITEM.szName, dw g_szItemBootSwap
|
---|
76 | at MENUITEM.szQuickInfo, dw g_szNfoBootSwap
|
---|
77 | at MENUITEM.szHelp, dw g_szHelpBootSwap
|
---|
78 | at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE
|
---|
79 | at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE
|
---|
80 | at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags
|
---|
81 | at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootSwap
|
---|
82 | at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag
|
---|
83 | at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans
|
---|
84 | at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_DRVXLAT
|
---|
85 | iend
|
---|
86 |
|
---|
87 | g_rgwChoiceToValueLookupForFloppyDrives: ; (No translation)
|
---|
88 | dw 0
|
---|
89 | dw 1
|
---|
90 | dw 2
|
---|
91 | dw 3
|
---|
92 | dw 4
|
---|
93 | g_rgszValueToStringLookupForFloppyDrives:
|
---|
94 | dw g_szValueBootFloppyDrvsAuto
|
---|
95 | dw g_szValueBootFloppyDrvs1
|
---|
96 | dw g_szValueBootFloppyDrvs2
|
---|
97 | dw g_szValueBootFloppyDrvs3
|
---|
98 | dw g_szValueBootFloppyDrvs4
|
---|
99 |
|
---|
100 |
|
---|
101 | ; Section containing code
|
---|
102 | SECTION .text
|
---|
103 |
|
---|
104 | ;--------------------------------------------------------------------
|
---|
105 | ; BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
|
---|
106 | ; Parameters:
|
---|
107 | ; SS:BP: Menu handle
|
---|
108 | ; Returns:
|
---|
109 | ; Nothing
|
---|
110 | ; Corrupts registers:
|
---|
111 | ; All, except BP
|
---|
112 | ;--------------------------------------------------------------------
|
---|
113 | ALIGN JUMP_ALIGN
|
---|
114 | BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility:
|
---|
115 | push cs
|
---|
116 | pop ds
|
---|
117 | mov si, g_MenupageForBootMenuSettingsMenu
|
---|
118 | jmp Menupage_ChangeToNewMenupageInDSSI
|
---|