Changeset 505 in xtideuniversalbios for trunk/Assembly_Library/Inc
- Timestamp:
- Feb 25, 2013, 4:23:09 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Assembly_Library/Inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Display.inc
r407 r505 6 6 %ifndef MODULE_STRINGS_COMPRESSED_PRECOMPRESS 7 7 ;-------------------------------------------------------------------- 8 ; Display Library users need to use th is macrosince it will provide8 ; Display Library users need to use these macros since it will provide 9 9 ; compatibility with future library versions. 10 10 ; 11 11 ; CALL_DISPLAY_LIBRARY 12 ; JMP_DISPLAY_LIBRARY 12 13 ; Parameters: 13 14 ; %1: Function to call (functionName from DISPLAY_LIB) … … 28 29 mov di, %1 29 30 call Display_FunctionFromDI 31 %endif 32 %endmacro 33 34 %macro JMP_DISPLAY_LIBRARY 1 35 %ifidn %1, PushDisplayContext 36 jmp DisplayContext_Push 37 %elifidn %1, PopDisplayContext 38 call DisplayContext_Pop 39 ret 40 %elifidn %1, PrepareOffScreenBufferInESBXwithLengthInCX 41 jmp DisplayContext_PrepareOffScreenBufferInESBXwithLengthInCX 42 %elifidn %1, FormatNullTerminatedStringFromCSSI 43 mov di, %1 44 call Display_FunctionFromDI 45 ret 46 %else 47 mov di, %1 48 jmp Display_FunctionFromDI 30 49 %endif 31 50 %endmacro -
trunk/Assembly_Library/Inc/MenuEvents.inc
r492 r505 1 ; File name : MenuEvents.inc2 1 ; Project name : Assembly Library 3 ; Created date : 13.7.20104 ; Last update : 18.10.20105 ; Author : Tomi Tilli6 2 ; Description : Defines for Menu events send to the user. 7 3 %ifndef MENUEVENTS_INC … … 27 23 ; 28 24 ; 2. If the program needs only one menu, %define MENUEVENT_INLINE_OFFSETS before this include file, 29 ; and define (through EQU statements) each of the entry points as offsets from a base address. 30 ; 25 ; and define (through EQU statements) each of the entry points as offsets from a base address. 26 ; 31 27 32 28 ; … … 49 45 ; Returns: 50 46 ; DS:SI: Ptr to initialized MENUINIT struct 51 .InitializeMenuinitFromDSSI 52 MENUEVENT_InitializeMenuinitFromDSSI equMENUEVENT.InitializeMenuinitFromDSSI47 .InitializeMenuinitFromDSSI resb 2 48 %define MENUEVENT_InitializeMenuinitFromDSSI MENUEVENT.InitializeMenuinitFromDSSI 53 49 54 50 ; Parameters: … … 57 53 ; CF: Set to exit menu 58 54 ; Clear to cancel exit 59 .ExitMenu 60 MENUEVENT_ExitMenu equMENUEVENT.ExitMenu55 .ExitMenu resb 2 56 %define MENUEVENT_ExitMenu MENUEVENT.ExitMenu 61 57 62 58 %ifdef MENUEVENT_IDLEPROCESSING_ENABLE … … 64 60 ; None 65 61 ; See the definition of MENUEVENT_IDLEPROCESSING_ENABLE below. 66 .IdleProcessing 67 MENUEVENT_IdleProcessing equMENUEVENT.IdleProcessing62 .IdleProcessing resb 2 63 %define MENUEVENT_IdleProcessing MENUEVENT.IdleProcessing 68 64 %endif 69 65 … … 71 67 ; CX: Index of new highlighted item 72 68 ; DX: Index of previously highlighted item or NO_ITEM_HIGHLIGHTED 73 .ItemHighlightedFromCX 74 MENUEVENT_ItemHighlightedFromCX equMENUEVENT.ItemHighlightedFromCX69 .ItemHighlightedFromCX resb 2 70 %define MENUEVENT_ItemHighlightedFromCX MENUEVENT.ItemHighlightedFromCX 75 71 76 72 ; Parameters: 77 73 ; CX: Index of selected item 78 .ItemSelectedFromCX 79 MENUEVENT_ItemSelectedFromCX equMENUEVENT.ItemSelectedFromCX74 .ItemSelectedFromCX resb 2 75 %define MENUEVENT_ItemSelectedFromCX MENUEVENT.ItemSelectedFromCX 80 76 81 77 ; Parameters: 82 78 ; AL: ASCII character for the key 83 79 ; AH: Keyboard library scan code for the key 84 .KeyStrokeInAX 85 MENUEVENT_KeyStrokeInAX equMENUEVENT.KeyStrokeInAX80 .KeyStrokeInAX resb 2 81 %define MENUEVENT_KeyStrokeInAX MENUEVENT.KeyStrokeInAX 86 82 87 83 ; Parameters: 88 84 ; CX: Index of highlighted item 89 85 ; Cursor has been positioned to the beginning of first line 90 .RefreshTitle 91 .RefreshInformation 92 MENUEVENT_RefreshTitle equMENUEVENT.RefreshTitle93 MENUEVENT_RefreshInformation equMENUEVENT.RefreshInformation86 .RefreshTitle resb 2 87 .RefreshInformation resb 2 88 %define MENUEVENT_RefreshTitle MENUEVENT.RefreshTitle 89 %define MENUEVENT_RefreshInformation MENUEVENT.RefreshInformation 94 90 95 91 ; Parameters: 96 92 ; CX: Index of item to refresh 97 93 ; Cursor has been positioned to the beginning of item line 98 .RefreshItemFromCX 99 MENUEVENT_RefreshItemFromCX equMENUEVENT.RefreshItemFromCX94 .RefreshItemFromCX resb 2 95 %define MENUEVENT_RefreshItemFromCX MENUEVENT.RefreshItemFromCX 100 96 endstruc 101 97 102 %endif ; MENUEVENT S_INLINE_OFFSETS98 %endif ; MENUEVENT_INLINE_OFFSETS 103 99 104 100 %endif ; MENUEVENTS_INC
Note:
See TracChangeset
for help on using the changeset viewer.