Changeset 105 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/MenuLoop.asm
- Timestamp:
- Feb 17, 2011, 2:52:42 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/MenuLoop.asm
r60 r105 1 ; File name : MenuLoop.asm2 1 ; Project name : Assembly Library 3 ; Created date : 22.7.20104 ; Last update : 25.11.20105 ; Author : Tomi Tilli6 2 ; Description : Menu loop for waiting keystrokes. 7 3 … … 22 18 call KeystrokeProcessing 23 19 call TimeoutProcessing 24 call IdleTimeProcessing20 call MenuEvent_IdleProcessing ; User idle processing 25 21 test BYTE [bp+MENU.bFlags], FLG_MENU_EXIT 26 22 jz SHORT MenuLoop_Enter … … 29 25 30 26 ;-------------------------------------------------------------------- 31 ; IdleTimeProcessing27 ; KeystrokeProcessing 32 28 ; TimeoutProcessing 33 ; KeystrokeProcessing34 29 ; Parameters 35 30 ; SS:BP: Ptr to MENU … … 40 35 ;-------------------------------------------------------------------- 41 36 ALIGN JUMP_ALIGN 42 IdleTimeProcessing: 43 jmp MenuEvent_IdleProcessing ; User idle processing 37 KeystrokeProcessing: 38 call Keyboard_GetKeystrokeToAX 39 jnz SHORT ProcessKeystrokeFromAX 40 NoKeystrokeToProcess: 41 ret 44 42 45 43 ALIGN JUMP_ALIGN 46 44 TimeoutProcessing: 47 45 call MenuTime_UpdateSelectionTimeout 46 jnc NoKeystrokeToProcess 48 47 mov ah, MENU_KEY_ENTER ; Fake ENTER to select item 49 jc SHORT ProcessKeystrokeFromAX ; Process faked ENTER 50 ret 51 52 ALIGN JUMP_ALIGN 53 KeystrokeProcessing: 54 call Keyboard_GetKeystrokeToAX 55 jnz SHORT ProcessKeystrokeFromAX 56 ret 48 ; Fall to ProcessKeystrokeFromAX 57 49 58 50 … … 74 66 xchg ax, cx 75 67 call .ProcessMenuSystemKeystrokeFromAX 76 jc SHORT .Return68 jc SHORT NoKeystrokeToProcess 77 69 jmp MenuEvent_KeyStrokeInAX 78 ALIGN JUMP_ALIGN, ret79 .Return:80 ret81 70 82 71 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.