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

Last change on this file since 2 was 2, checked in by aitotat, 14 years ago
File size: 2.4 KB
Line 
1; File name     :   BusTypeValueMenu.asm
2; Project name  :   XTIDE Univeral BIOS Configurator
3; Created date  :   25.4.2010
4; Last update   :   25.4.2010
5; Author        :   Tomi Tilli
6; Description   :   Menu for selecting bus type.
7
8; Section containing initialized data
9SECTION .data
10
11ALIGN WORD_ALIGN
12g_MenuPageBusType:
13istruc MENUPAGE
14    at  MENUPAGE.bItemCnt,          db  4
15    at  MENUPAGE.prgbItemToVal,     dw  g_rgbBusTypeMenuitemToValue
16iend
17istruc MENUPAGEITEM ; 8-bit dual port (XTIDE)
18    at  MENUPAGEITEM.fnActivate,    dw  MainPageItem_ActivateLeaveSubmenu
19    at  MENUPAGEITEM.fnNameFormat,  dw  MenuPageItemFormat_NameForAnyType
20    at  MENUPAGEITEM.szName,        dw  g_szItemBus8Dual
21    at  MENUPAGEITEM.szInfo,        dw  g_szNfoBus8Dual
22    at  MENUPAGEITEM.szHelp,        dw  g_szNfoBus8Dual
23    at  MENUPAGEITEM.bFlags,        db  FLG_MENUPAGEITEM_VISIBLE
24    at  MENUPAGEITEM.bType,         db  TYPE_MENUPAGEITEM_BACK
25iend
26istruc MENUPAGEITEM ; 8-bit single port
27    at  MENUPAGEITEM.fnActivate,    dw  MainPageItem_ActivateLeaveSubmenu
28    at  MENUPAGEITEM.fnNameFormat,  dw  MenuPageItemFormat_NameForAnyType
29    at  MENUPAGEITEM.szName,        dw  g_szItemBus8Single
30    at  MENUPAGEITEM.szInfo,        dw  g_szNfoBus8Single
31    at  MENUPAGEITEM.szHelp,        dw  g_szNfoBus8Single
32    at  MENUPAGEITEM.bFlags,        db  FLG_MENUPAGEITEM_VISIBLE
33    at  MENUPAGEITEM.bType,         db  TYPE_MENUPAGEITEM_BACK
34iend
35istruc MENUPAGEITEM ; 16-bit
36    at  MENUPAGEITEM.fnActivate,    dw  MainPageItem_ActivateLeaveSubmenu
37    at  MENUPAGEITEM.fnNameFormat,  dw  MenuPageItemFormat_NameForAnyType
38    at  MENUPAGEITEM.szName,        dw  g_szItemBus16
39    at  MENUPAGEITEM.szInfo,        dw  g_szNfoBus16
40    at  MENUPAGEITEM.szHelp,        dw  g_szNfoBus16
41    at  MENUPAGEITEM.bFlags,        db  FLG_MENUPAGEITEM_VISIBLE
42    at  MENUPAGEITEM.bType,         db  TYPE_MENUPAGEITEM_BACK
43iend
44istruc MENUPAGEITEM ; 32-bit generic
45    at  MENUPAGEITEM.fnActivate,    dw  MainPageItem_ActivateLeaveSubmenu
46    at  MENUPAGEITEM.fnNameFormat,  dw  MenuPageItemFormat_NameForAnyType
47    at  MENUPAGEITEM.szName,        dw  g_szItemBus32Generic
48    at  MENUPAGEITEM.szInfo,        dw  g_szNfoBus32Generic
49    at  MENUPAGEITEM.szHelp,        dw  g_szNfoBus32Generic
50    at  MENUPAGEITEM.bFlags,        db  FLG_MENUPAGEITEM_VISIBLE
51    at  MENUPAGEITEM.bType,         db  TYPE_MENUPAGEITEM_BACK
52iend
53
54; Lookup table for Bus type value strings
55g_rgszBusTypeValueToString:
56    dw  g_szValueDual8b
57    dw  g_szValue16b
58    dw  g_szValue32b
59    dw  g_szValueSingle8b
60
61; Lookup table for translating menuitem index to value
62g_rgbBusTypeMenuitemToValue:
63    db  BUS_TYPE_8_DUAL
64    db  BUS_TYPE_8_SINGLE
65    db  BUS_TYPE_16
66    db  BUS_TYPE_32
Note: See TracBrowser for help on using the repository browser.