Changeset 390 in xtideuniversalbios for trunk/Assembly_Library/Src
- Timestamp:
- Apr 17, 2012, 2:35:52 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/MenuInit.asm
r376 r390 36 36 push es 37 37 push ds 38 LOAD_BDA_SEGMENT_TO ds, cx, ! 39 push WORD [BDA.wVidCurShape] 40 mov cl, MENU_size 41 eENTER_STRUCT cx 42 38 xchg cx, ax ; Backup user data 39 CALL_DISPLAY_LIBRARY PushDisplayContext 40 41 ; Create MENU struct to stack 42 mov ax, MENU_size 43 eENTER_STRUCT ax 44 xchg ax, cx ; Restore user data to AX 43 45 call Memory_ZeroSSBPwithSizeInCX 44 call MenuInit_EnterMenuWithHandlerInBXandUserDataInDXAX 46 47 ; Display menu 48 call EnterMenuWithHandlerInBXandUserDataInDXAX 49 50 ; Get menu selection and destroy menu variables from stack 45 51 mov dx, [bp+MENUINIT.wHighlightedItem] 46 47 eLEAVE_STRUCT MENU_size 48 pop ax 49 CALL_DISPLAY_LIBRARY SetCursorShapeFromAX 50 CALL_DISPLAY_LIBRARY SynchronizeDisplayContextToHardware 52 eLEAVE_STRUCT MENU_size 53 54 CALL_DISPLAY_LIBRARY PopDisplayContext 51 55 xchg ax, dx ; Return highlighted item in AX 52 56 pop ds … … 56 60 57 61 ;-------------------------------------------------------------------- 58 ; MenuInit_EnterMenuWithHandlerInBXandUserDataInDXAX62 ; EnterMenuWithHandlerInBXandUserDataInDXAX 59 63 ; Parameters 60 64 ; DX:AX: User specified data … … 67 71 ;-------------------------------------------------------------------- 68 72 ALIGN MENU_JUMP_ALIGN 69 MenuInit_EnterMenuWithHandlerInBXandUserDataInDXAX:73 EnterMenuWithHandlerInBXandUserDataInDXAX: 70 74 mov [bp+MENU.fnEventHandler], bx 71 75 mov [bp+MENU.dwUserData], ax
Note:
See TracChangeset
for help on using the changeset viewer.