source: xtideuniversalbios/trunk/Configurator/Src/Menupages/Values/BootLoaderValueMenu.asm @ 2

Last change on this file since 2 was 2, checked in by aitotat, 14 years ago
File size: 2.1 KB
Line 
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
9SECTION .data
10
11ALIGN WORD_ALIGN
12g_MenuPageBootLoaderType:
13istruc MENUPAGE
14    at  MENUPAGE.bItemCnt,          db  3
15    at  MENUPAGE.prgbItemToVal,     dw  g_rgbBootLoaderMenuitemToValue
16iend
17istruc 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
25iend
26istruc 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
34iend
35istruc 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
43iend
44
45; Boot loader type value strings
46g_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
53g_rgbBootLoaderMenuitemToValue:
54    db      BOOTLOADER_TYPE_MENU
55    db      BOOTLOADER_TYPE_SIMPLE
56    db      BOOTLOADER_TYPE_NONE
Note: See TracBrowser for help on using the repository browser.