Changeset 492 in xtideuniversalbios for trunk/Assembly_Library
- Timestamp:
- Dec 21, 2012, 1:01:55 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Assembly_Library
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/MenuEvents.inc
r198 r492 50 50 ; DS:SI: Ptr to initialized MENUINIT struct 51 51 .InitializeMenuinitFromDSSI resb 2 52 %define MENUEVENT_InitializeMenuinitFromDSSIMENUEVENT.InitializeMenuinitFromDSSI52 MENUEVENT_InitializeMenuinitFromDSSI equ MENUEVENT.InitializeMenuinitFromDSSI 53 53 54 54 ; Parameters: … … 58 58 ; Clear to cancel exit 59 59 .ExitMenu resb 2 60 %define MENUEVENT_ExitMenuMENUEVENT.ExitMenu60 MENUEVENT_ExitMenu equ MENUEVENT.ExitMenu 61 61 62 62 %ifdef MENUEVENT_IDLEPROCESSING_ENABLE … … 65 65 ; See the definition of MENUEVENT_IDLEPROCESSING_ENABLE below. 66 66 .IdleProcessing resb 2 67 %define MENUEVENT_IdleProcessingMENUEVENT.IdleProcessing67 MENUEVENT_IdleProcessing equ MENUEVENT.IdleProcessing 68 68 %endif 69 69 … … 72 72 ; DX: Index of previously highlighted item or NO_ITEM_HIGHLIGHTED 73 73 .ItemHighlightedFromCX resb 2 74 %define MENUEVENT_ItemHighlightedFromCXMENUEVENT.ItemHighlightedFromCX74 MENUEVENT_ItemHighlightedFromCX equ MENUEVENT.ItemHighlightedFromCX 75 75 76 76 ; Parameters: 77 77 ; CX: Index of selected item 78 78 .ItemSelectedFromCX resb 2 79 %define MENUEVENT_ItemSelectedFromCXMENUEVENT.ItemSelectedFromCX79 MENUEVENT_ItemSelectedFromCX equ MENUEVENT.ItemSelectedFromCX 80 80 81 81 ; Parameters: … … 83 83 ; AH: Keyboard library scan code for the key 84 84 .KeyStrokeInAX resb 2 85 %define MENUEVENT_KeyStrokeInAXMENUEVENT.KeyStrokeInAX85 MENUEVENT_KeyStrokeInAX equ MENUEVENT.KeyStrokeInAX 86 86 87 87 ; Parameters: … … 90 90 .RefreshTitle resb 2 91 91 .RefreshInformation resb 2 92 %define MENUEVENT_RefreshTitleMENUEVENT.RefreshTitle93 %define MENUEVENT_RefreshInformationMENUEVENT.RefreshInformation92 MENUEVENT_RefreshTitle equ MENUEVENT.RefreshTitle 93 MENUEVENT_RefreshInformation equ MENUEVENT.RefreshInformation 94 94 95 95 ; Parameters: … … 97 97 ; Cursor has been positioned to the beginning of item line 98 98 .RefreshItemFromCX resb 2 99 %define MENUEVENT_RefreshItemFromCXMENUEVENT.RefreshItemFromCX99 MENUEVENT_RefreshItemFromCX equ MENUEVENT.RefreshItemFromCX 100 100 endstruc 101 101 -
trunk/Assembly_Library/Src/Display/DisplayPage.asm
r376 r492 41 41 42 42 43 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 44 %define EXCLUDE 45 %ifdef MODULE_HOTKEYS 46 %undef EXCLUDE 47 %endif 48 %ifdef MODULE_BOOT_MENU 49 %undef EXCLUDE 50 %endif 51 %endif 52 53 %ifndef EXCLUDE 43 54 ;-------------------------------------------------------------------- 44 55 ; DisplayPage_GetColumnsToALandRowsToAH … … 56 67 mov ah, 25 ; Always 25 rows on standard text modes 57 68 ret 58 69 %endif 70 %undef EXCLUDE 59 71 60 72 ;-------------------------------------------------------------------- -
trunk/Assembly_Library/Src/Display/DisplayPrint.asm
r491 r492 296 296 %endif 297 297 298 298 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 299 %define EXCLUDE 300 %ifdef MODULE_HOTKEYS 301 %undef EXCLUDE 302 %endif 303 %ifdef MODULE_BOOT_MENU 304 %undef EXCLUDE 305 %endif 306 %endif 307 308 %ifndef EXCLUDE 299 309 ;-------------------------------------------------------------------- 300 310 ; DisplayPrint_RepeatCharacterFromALwithCountInCX … … 324 334 .NothingToRepeat: 325 335 ret 326 336 %endif 337 %undef EXCLUDE 327 338 328 339 ;-------------------------------------------------------------------- -
trunk/Assembly_Library/Src/Keyboard/Keyboard.asm
r407 r492 289 289 ; Nothing 290 290 ;-------------------------------------------------------------------- 291 292 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 293 %define EXCLUDE 294 %ifdef MODULE_HOTKEYS 295 %undef EXCLUDE 296 %endif 297 %ifdef MODULE_BOOT_MENU 298 %undef EXCLUDE 299 %endif 300 %endif 301 302 %ifndef EXCLUDE 303 291 304 ALIGN KEYBOARD_JUMP_ALIGN 292 305 Keyboard_GetKeystrokeToAXandLeaveItToBuffer: … … 294 307 int BIOS_KEYBOARD_INTERRUPT_16h 295 308 ret 309 296 310 ALIGN KEYBOARD_JUMP_ALIGN 297 311 Keyboard_GetKeystrokeToAX: … … 306 320 Keyboard_GetKeystrokeToAXReturn: 307 321 ret 322 323 %endif 324 %undef EXCLUDE -
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.