source: xtideuniversalbios/trunk/Assembly_Library/Inc/MenuEvents.inc@ 43

Last change on this file since 43 was 41, checked in by Tomi Tilli, 14 years ago

Initial commit for Assembly Library.

File size: 1.7 KB
RevLine 
[41]1; File name : MenuEvents.inc
2; Project name : Assembly Library
3; Created date : 13.7.2010
4; Last update : 11.8.2010
5; Author : Tomi Tilli
6; Description : Defines for Menu events send to the user.
7%ifndef MENUEVENTS_INC
8%define MENUEVENTS_INC
9
10;--------------------------------------------------------------------
11; Events to be processed in user implemented handler.
12; Common parameters for all events:
13; BX: Menu event (anything from MENUEVENT struct)
14; SS:BP: Menu library handle
15; Common return values for all events:
16; CF: Set if event processed
17; Cleared if event not processed
18; Corrupts registers:
19; All
20;--------------------------------------------------------------------
21struc MENUEVENT
22 ; Parameters:
23 ; DS:SI: Ptr to MENUINIT struct to initialize
24 ; Returns:
25 ; DS:SI: Ptr to initialized MENUINIT struct
26 .InitializeMenuinitFromDSSI resb 2
27
28 ; Parameters:
29 ; None
30 .ExitMenu resb 2
31
32 ; Parameters:
33 ; None
34 .IdleProcessing resb 2
35
36 ; Parameters:
37 ; CX: Index of new highlighted item
38 ; DX: Index of previously highlighted item or NO_ITEM_HIGHLIGHTED
39 .ItemHighlightedFromCX resb 2
40
41 ; Parameters:
42 ; CX: Index of selected item
43 .ItemSelectedFromCX resb 2
44
45 ; Parameters:
46 ; AL: ASCII character for the key
47 ; AH: Keyboard library scan code for the key
48 .KeyStrokeInAX resb 2
49
50 ; Parameters:
51 ; None but cursor has been positioned to the beginning of first line
52 .RefreshTitle resb 2
53 .RefreshInformation resb 2
54
55 ; Parameters:
56 ; CX: Index of item to refresh
57 ; Cursor has been positioned to the beginning of item line
58 .RefreshItemFromCX resb 2
59endstruc
60
61
62%endif ; MENUEVENTS_INC
Note: See TracBrowser for help on using the repository browser.