Rev 928 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
928 | serge | 1 | |
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
2971 | Serge | 7 | public _show_window |
8 | public _get_event |
||
9 | public _def_window_proc |
||
10 | |||
11 | |||
12 | public stb_show_window |
||
13 | public stb_get_event |
||
14 | public stb_def_window_proc |
||
15 | |||
16 | |||
17 | extrn _sys_show_window |
||
18 | extrn _sys_get_event |
||
19 | extrn _sys_def_window_proc |
||
20 | |||
21 | |||
928 | serge | 22 | |
23 | |||
24 | |||
25 | |||
26 | ; xchg bx, bx |
||
27 | |||
28 | |||
29 | iretd |
||
30 | |||
31 | |||
2971 | Serge | 32 | stb_create_window: |
33 | |||
34 | |||
35 | pushd [ecx+16] |
||
36 | pushd [ecx+12] |
||
37 | pushd [ecx+8] |
||
38 | pushd [ecx+4] |
||
39 | pushd [ecx] |
||
40 | |||
41 | |||
42 | |||
43 | |||
44 | mov [esp + 32], eax |
||
45 | ret |
||
46 | |||
47 | |||
48 | stb_show_window: |
||
49 | pushd [ecx] |
||
50 | call _sys_show_window |
||
51 | add esp, 4 |
||
52 | mov [esp + 32], eax |
||
53 | ret |
||
54 | |||
55 | |||
56 | stb_get_event: |
||
57 | pushd [ecx] |
||
58 | call _sys_get_event |
||
59 | add esp, 4 |
||
60 | mov [esp + 32], eax |
||
61 | ret |
||
62 | |||
63 | |||
64 | stb_def_window_proc: |
||
65 | pushd [ecx] |
||
66 | call _sys_def_window_proc |
||
67 | add esp, 4 |
||
68 | mov [esp + 32], eax |
||
69 | ret |
||
70 | |||
71 | |||
72 | _create_window: |
||
73 | |||
74 | |||
75 | mov eax, 73 |
||
76 | int 0x41 |
||
77 | ret |
||
78 | |||
79 | |||
80 | _show_window: |
||
81 | |||
82 | |||
83 | mov eax, 74 |
||
84 | int 0x41 |
||
85 | ret |
||
86 | |||
87 | |||
88 | _get_event: |
||
89 | lea ecx, [esp+4] |
||
90 | mov eax, 75 |
||
91 | int 0x41 |
||
92 | ret |
||
93 | |||
94 | |||
95 | _def_window_proc: |
||
96 | |||
97 | |||
98 | mov eax, 76 |
||
99 | int 0x41 |
||
100 | ret |
||
101 |