Rev 1685 | Rev 6196 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1685 | Rev 3375 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | macro wait_event redraw,key,button,mouse,ipc,other |
40 | macro wait_event redraw,key,button,mouse,ipc,other |
41 | { |
41 | { |
42 | mov eax,10 |
42 | mov eax,10 |
43 | mcall |
43 | mcall |
44 | dec ax |
44 | dec ax |
45 | if |
45 | if redraw eq |
46 | else |
46 | else |
47 | jz redraw |
47 | jz redraw |
48 | end if |
48 | end if |
49 | dec ax |
49 | dec ax |
50 | if |
50 | if key eq |
51 | else |
51 | else |
52 | jz key |
52 | jz key |
53 | end if |
53 | end if |
54 | dec ax |
54 | dec ax |
55 | if |
55 | if button eq |
56 | else |
56 | else |
57 | jz button |
57 | jz button |
58 | end if |
58 | end if |
59 | dec ax |
59 | dec ax |
60 | dec ax |
60 | dec ax |
61 | dec ax |
61 | dec ax |
62 | if |
62 | if mouse eq |
63 | else |
63 | else |
64 | jz mouse |
64 | jz mouse |
65 | end if |
65 | end if |
66 | if |
66 | if ipc eq |
67 | else |
67 | else |
68 | dec ax |
68 | dec ax |
69 | jz ipc |
69 | jz ipc |
70 | end if |
70 | end if |
71 | if |
71 | if other eq |
72 | jmp still |
72 | jmp still |
73 | else |
73 | else |
74 | jmp other |
74 | jmp other |
75 | end if |
75 | end if |
76 | } |
76 | } |
Line 148... | Line 148... | ||
148 | push 9 |
148 | push 9 |
149 | pop eax |
149 | pop eax |
150 | ;mov ebx,proc_inf_buf |
150 | ;mov ebx,proc_inf_buf |
151 | push proc_inf_buf |
151 | push proc_inf_buf |
152 | pop ebx |
152 | pop ebx |
153 | if |
153 | if slot_num eq |
154 | xor ecx,ecx |
154 | xor ecx,ecx |
155 | dec ecx |
155 | dec ecx |
156 | else |
156 | else |
157 | ;mov ecx,slot_num |
157 | ;mov ecx,slot_num |
158 | push slot_num |
158 | push slot_num |
Line 195... | Line 195... | ||
195 | mcall |
195 | mcall |
196 | } |
196 | } |
197 | macro delay time |
197 | macro delay time |
198 | { |
198 | { |
199 | mov eax,5 |
199 | mov eax,5 |
200 | if |
200 | if time eq |
201 | else |
201 | else |
202 | mov ebx,time |
202 | mov ebx,time |
203 | end if |
203 | end if |
204 | mcall |
204 | mcall |
205 | } |
205 | } |
206 | macro activ_window slot_n |
206 | macro activ_window slot_n |
207 | { |
207 | { |
208 | mov eax,18 |
208 | mov eax,18 |
209 | mov ebx,3 |
209 | mov ebx,3 |
210 | if |
210 | if slot_n eq |
211 | else |
211 | else |
212 | mov ecx,slot_n |
212 | mov ecx,slot_n |
213 | end if |
213 | end if |
214 | mcall |
214 | mcall |
215 | } |
215 | } |