[2] | 1 | ; File name : SdpCommandValueMenu.asm
|
---|
| 2 | ; Project name : XTIDE Univeral BIOS Configurator
|
---|
| 3 | ; Created date : 30.4.2010
|
---|
| 4 | ; Last update : 30.4.2010
|
---|
| 5 | ; Author : Tomi Tilli
|
---|
| 6 | ; Description : Menu for selecting SDP command for flashing.
|
---|
| 7 |
|
---|
| 8 | ; Section containing initialized data
|
---|
| 9 | SECTION .data
|
---|
| 10 |
|
---|
| 11 | ALIGN WORD_ALIGN
|
---|
| 12 | g_MenuPageSdpCommand:
|
---|
| 13 | istruc MENUPAGE
|
---|
| 14 | at MENUPAGE.bItemCnt, db 3
|
---|
| 15 | at MENUPAGE.prgbItemToVal, dw g_rgbSDPMenuitemToValue
|
---|
| 16 | iend
|
---|
| 17 | istruc MENUPAGEITEM ; None
|
---|
| 18 | at MENUPAGEITEM.fnActivate, dw MainPageItem_ActivateLeaveSubmenu
|
---|
| 19 | at MENUPAGEITEM.fnNameFormat, dw MenuPageItemFormat_NameForAnyType
|
---|
| 20 | at MENUPAGEITEM.szName, dw g_szItemSdpNone
|
---|
| 21 | at MENUPAGEITEM.szInfo, dw g_szNfoSdpNone
|
---|
| 22 | at MENUPAGEITEM.szHelp, dw g_szNfoSdpNone
|
---|
| 23 | at MENUPAGEITEM.bFlags, db FLG_MENUPAGEITEM_VISIBLE
|
---|
| 24 | at MENUPAGEITEM.bType, db TYPE_MENUPAGEITEM_BACK
|
---|
| 25 | iend
|
---|
| 26 | istruc MENUPAGEITEM ; Enable
|
---|
| 27 | at MENUPAGEITEM.fnActivate, dw MainPageItem_ActivateLeaveSubmenu
|
---|
| 28 | at MENUPAGEITEM.fnNameFormat, dw MenuPageItemFormat_NameForAnyType
|
---|
| 29 | at MENUPAGEITEM.szName, dw g_szItemSdpEnable
|
---|
| 30 | at MENUPAGEITEM.szInfo, dw g_szNfoSdpEnable
|
---|
| 31 | at MENUPAGEITEM.szHelp, dw g_szNfoSdpEnable
|
---|
| 32 | at MENUPAGEITEM.bFlags, db FLG_MENUPAGEITEM_VISIBLE
|
---|
| 33 | at MENUPAGEITEM.bType, db TYPE_MENUPAGEITEM_BACK
|
---|
| 34 | iend
|
---|
| 35 | istruc MENUPAGEITEM ; Disable
|
---|
| 36 | at MENUPAGEITEM.fnActivate, dw MainPageItem_ActivateLeaveSubmenu
|
---|
| 37 | at MENUPAGEITEM.fnNameFormat, dw MenuPageItemFormat_NameForAnyType
|
---|
| 38 | at MENUPAGEITEM.szName, dw g_szItemSdpDisable
|
---|
| 39 | at MENUPAGEITEM.szInfo, dw g_szNfoSdpDisable
|
---|
| 40 | at MENUPAGEITEM.szHelp, dw g_szNfoSdpDisable
|
---|
| 41 | at MENUPAGEITEM.bFlags, db FLG_MENUPAGEITEM_VISIBLE
|
---|
| 42 | at MENUPAGEITEM.bType, db TYPE_MENUPAGEITEM_BACK
|
---|
| 43 | iend
|
---|
| 44 |
|
---|
| 45 | ; Lookup table for SDP command value strings
|
---|
| 46 | g_rgszSdpValueToString:
|
---|
| 47 | dw g_szValueSdpNone
|
---|
| 48 | dw g_szValueSdpEnable
|
---|
| 49 | dw g_szValueSdpDisable
|
---|
| 50 |
|
---|
| 51 | ; Lookup table for translating menuitem index to value
|
---|
| 52 | g_rgbSDPMenuitemToValue:
|
---|
| 53 | db CMD_SDP_NONE
|
---|
| 54 | db CMD_SDP_ENABLE
|
---|
| 55 | db CMD_SDP_DISABLE
|
---|