[2] | 1 | ; File name : BootLoaderValueMenu.asm
|
---|
| 2 | ; Project name : XTIDE Univeral BIOS Configurator
|
---|
| 3 | ; Created date : 22.4.2010
|
---|
| 4 | ; Last update : 25.4.2010
|
---|
| 5 | ; Author : Tomi Tilli
|
---|
| 6 | ; Description : Menu for selecting Boot Loader type.
|
---|
| 7 |
|
---|
| 8 | ; Section containing initialized data
|
---|
| 9 | SECTION .data
|
---|
| 10 |
|
---|
| 11 | ALIGN WORD_ALIGN
|
---|
| 12 | g_MenuPageBootLoaderType:
|
---|
| 13 | istruc MENUPAGE
|
---|
| 14 | at MENUPAGE.bItemCnt, db 3
|
---|
| 15 | at MENUPAGE.prgbItemToVal, dw g_rgbBootLoaderMenuitemToValue
|
---|
| 16 | iend
|
---|
| 17 | istruc MENUPAGEITEM ; Boot menu
|
---|
| 18 | at MENUPAGEITEM.fnActivate, dw MainPageItem_ActivateLeaveSubmenu
|
---|
| 19 | at MENUPAGEITEM.fnNameFormat, dw MenuPageItemFormat_NameForAnyType
|
---|
| 20 | at MENUPAGEITEM.szName, dw g_szItemBootMenu
|
---|
| 21 | at MENUPAGEITEM.szInfo, dw g_szNfoBootMenu
|
---|
| 22 | at MENUPAGEITEM.szHelp, dw g_szNfoBootMenu
|
---|
| 23 | at MENUPAGEITEM.bFlags, db FLG_MENUPAGEITEM_VISIBLE
|
---|
| 24 | at MENUPAGEITEM.bType, db TYPE_MENUPAGEITEM_BACK
|
---|
| 25 | iend
|
---|
| 26 | istruc MENUPAGEITEM ; Simple
|
---|
| 27 | at MENUPAGEITEM.fnActivate, dw MainPageItem_ActivateLeaveSubmenu
|
---|
| 28 | at MENUPAGEITEM.fnNameFormat, dw MenuPageItemFormat_NameForAnyType
|
---|
| 29 | at MENUPAGEITEM.szName, dw g_szItemBootSimple
|
---|
| 30 | at MENUPAGEITEM.szInfo, dw g_szNfoBootSimple
|
---|
| 31 | at MENUPAGEITEM.szHelp, dw g_szNfoBootSimple
|
---|
| 32 | at MENUPAGEITEM.bFlags, db FLG_MENUPAGEITEM_VISIBLE
|
---|
| 33 | at MENUPAGEITEM.bType, db TYPE_MENUPAGEITEM_BACK
|
---|
| 34 | iend
|
---|
| 35 | istruc MENUPAGEITEM ; None
|
---|
| 36 | at MENUPAGEITEM.fnActivate, dw MainPageItem_ActivateLeaveSubmenu
|
---|
| 37 | at MENUPAGEITEM.fnNameFormat, dw MenuPageItemFormat_NameForAnyType
|
---|
| 38 | at MENUPAGEITEM.szName, dw g_szItemBootNone
|
---|
| 39 | at MENUPAGEITEM.szInfo, dw g_szNfoBootNone
|
---|
| 40 | at MENUPAGEITEM.szHelp, dw g_szNfoBootNone
|
---|
| 41 | at MENUPAGEITEM.bFlags, db FLG_MENUPAGEITEM_VISIBLE
|
---|
| 42 | at MENUPAGEITEM.bType, db TYPE_MENUPAGEITEM_BACK
|
---|
| 43 | iend
|
---|
| 44 |
|
---|
| 45 | ; Boot loader type value strings
|
---|
| 46 | g_rgszBootLoaderValueToString:
|
---|
| 47 | dw g_szValueBootLdrMenu ; BOOTLOADER_TYPE_MENU
|
---|
| 48 | dw g_szValueBootLdrSimple ; BOOTLOADER_TYPE_SIMPLE
|
---|
| 49 | dw g_szValueBootLdrSimple ; Undefined
|
---|
| 50 | dw g_szValueBootLdrNone ; BOOTLOADER_TYPE_NONE
|
---|
| 51 |
|
---|
| 52 | ; Lookup table for translating menuitem index to value
|
---|
| 53 | g_rgbBootLoaderMenuitemToValue:
|
---|
| 54 | db BOOTLOADER_TYPE_MENU
|
---|
| 55 | db BOOTLOADER_TYPE_SIMPLE
|
---|
| 56 | db BOOTLOADER_TYPE_NONE
|
---|