[2] | 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
|
---|
| 9 | SECTION .data
|
---|
| 10 |
|
---|
| 11 | ALIGN WORD_ALIGN
|
---|
| 12 | g_MenuPageBusType:
|
---|
| 13 | istruc MENUPAGE
|
---|
| 14 | at MENUPAGE.bItemCnt, db 4
|
---|
| 15 | at MENUPAGE.prgbItemToVal, dw g_rgbBusTypeMenuitemToValue
|
---|
| 16 | iend
|
---|
| 17 | istruc 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
|
---|
| 25 | iend
|
---|
| 26 | istruc 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
|
---|
| 34 | iend
|
---|
| 35 | istruc 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
|
---|
| 43 | iend
|
---|
| 44 | istruc 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
|
---|
| 52 | iend
|
---|
| 53 |
|
---|
| 54 | ; Lookup table for Bus type value strings
|
---|
| 55 | g_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
|
---|
| 62 | g_rgbBusTypeMenuitemToValue:
|
---|
| 63 | db BUS_TYPE_8_DUAL
|
---|
| 64 | db BUS_TYPE_8_SINGLE
|
---|
| 65 | db BUS_TYPE_16
|
---|
| 66 | db BUS_TYPE_32
|
---|