Changeset 492 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- Dec 21, 2012, 1:01:55 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Menu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/MenuEvent.asm
r376 r492 52 52 ; AX, BX, DX 53 53 ;-------------------------------------------------------------------- 54 %ifndef MENU_NO_ESC 54 55 ALIGN MENU_JUMP_ALIGN 55 56 MenuEvent_ExitMenu: 56 57 mov bl, MENUEVENT_ExitMenu 57 58 jmp SHORT MenuEvent_SendFromBX 58 59 %endif 60 59 61 60 62 %ifdef MENUEVENT_IDLEPROCESSING_ENABLE … … 153 155 ; AX, BX, DX 154 156 ;-------------------------------------------------------------------- 157 %ifdef MENUEVENT_KeyStrokInAX 155 158 ALIGN MENU_JUMP_ALIGN 156 159 MenuEvent_KeyStrokeInAX: 157 160 mov bl, MENUEVENT_KeyStrokeInAX 158 161 SKIP2B dx ; mov dx, <next instruction> 159 162 %endif 160 163 161 164 ;-------------------------------------------------------------------- -
trunk/Assembly_Library/Src/Menu/MenuLoop.asm
r376 r492 85 85 xchg ax, cx 86 86 call .ProcessMenuSystemKeystrokeFromAX 87 %ifdef MENUEVENT_KeyStrokeInAX 87 88 jc SHORT NoKeystrokeToProcess 88 89 jmp MenuEvent_KeyStrokeInAX 89 90 %else 91 jmp SHORT NoKeystrokeToProcess 92 %endif 93 90 94 ;-------------------------------------------------------------------- 91 95 ; .ProcessMenuSystemKeystrokeFromAX … … 104 108 ALIGN MENU_JUMP_ALIGN 105 109 .ProcessMenuSystemKeystrokeFromAX: 110 %ifndef MENU_NO_ESC 106 111 cmp al, ESC 107 112 je SHORT .LeaveMenuWithoutSelectingItem 113 %endif 108 114 cmp al, CR 109 115 je SHORT .SelectItem … … 113 119 ret ; Return with CF cleared since keystroke not processed 114 120 121 %ifndef MENU_NO_ESC 115 122 ALIGN MENU_JUMP_ALIGN 116 123 .LeaveMenuWithoutSelectingItem: … … 122 129 stc 123 130 ret 124 131 %endif 132 125 133 ALIGN MENU_JUMP_ALIGN 126 134 .SelectItem:
Note:
See TracChangeset
for help on using the changeset viewer.