Changeset 390 in xtideuniversalbios
- Timestamp:
- Apr 17, 2012, 2:35:52 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/Assembly_Library
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Display.inc
r370 r390 82 82 %endif 83 83 84 ; Attribute flags for DISPLAY_LIB.SetCharacterOutputFunctionFromAXwithAttributeFlagIn DL84 ; Attribute flags for DISPLAY_LIB.SetCharacterOutputFunctionFromAXwithAttributeFlagInBL 85 85 ATTRIBUTES_NOT_USED EQU 0 86 86 ATTRIBUTES_ARE_USED EQU FLG_CONTEXT_ATTRIBUTES 87 87 88 ; Character output functions for DISPLAY_LIB.SetCharacterOutputFunctionFromAXwithAttributeFlagIn DL88 ; Character output functions for DISPLAY_LIB.SetCharacterOutputFunctionFromAXwithAttributeFlagInBL 89 89 TELETYPE_OUTPUT_WITH_ATTRIBUTE EQU DisplayCharOut_TeletypeOutputWithAttribute 90 90 TELETYPE_OUTPUT_WITHOUT_ATTRIBUTE EQU DisplayCharOut_TeletypeOutput -
trunk/Assembly_Library/Inc/Emulate.inc
r293 r390 164 164 %endmacro 165 165 166 %macro eCMOVNC 2 167 jc SHORT %%Return 168 mov %1, %2 169 %%Return: 170 %endmacro 171 166 172 %macro eCMOVZ 2 167 173 jnz SHORT %%Return … … 186 192 %macro eCMOVB 2 187 193 jnb SHORT %%Return 194 mov %1, %2 195 %%Return: 196 %endmacro 197 198 %macro eCMOVS 2 199 jns SHORT %%Return 188 200 mov %1, %2 189 201 %%Return: -
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.