Rev 1743 | Rev 3587 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1743 | Rev 2676 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | meos_app_start |
12 | meos_app_start |
13 | code |
13 | code |
Line 14... | Line 14... | ||
14 | 14 | ||
Line 15... | Line -... | ||
15 | do_draw: |
- | |
16 | - | ||
17 | mov al,12 ; eax=12 - tell os about redraw start |
15 | do_draw: |
Line 18... | Line 16... | ||
18 | mov bl,1 |
16 | |
19 | mcall |
17 | mcall 12,1 |
Line 20... | Line 18... | ||
20 | 18 | ||
Line 45... | Line 43... | ||
45 | xchg ebx,[esp] |
43 | xchg ebx,[esp] |
46 | mcall ,,55 shl 16+24 |
44 | mcall ,,55 shl 16+24 |
47 | pop ebx |
45 | pop ebx |
48 | mcall |
46 | mcall |
Line 49... | Line -... | ||
49 | - | ||
50 | xor edx,edx |
47 | |
51 | mov al,8 |
- | |
52 | inc edx |
48 | mov al,8 |
53 | mcall ,15 shl 16+87,17 shl 16+24,,0xaa0044 |
- | |
54 | inc edx |
49 | mcall ,15 shl 16+87,17 shl 16+24,4,0xaa0044 |
55 | mcall ,118 shl 16+87,,,0xbb7700 |
- | |
56 | inc edx |
50 | mcall ,118 shl 16+87,,2,0xbb7700 |
57 | mcall ,15 shl 16+87,51 shl 16+24,,0x8800 |
- | |
58 | inc edx |
51 | mcall ,15 shl 16+87,51 shl 16+24,3,0x8800 |
59 | mcall ,118 shl 16+87,,,0x999999 |
52 | mcall ,118 shl 16+87,,1,0x999999 |
60 | mcall ,10 shl 16+200,88 shl 16+15,0x40000005 |
53 | mcall ,10 shl 16+200,88 shl 16+15,0x40000005 |
Line 61... | Line 54... | ||
61 | mcall 38,27 shl 16 +193,102 shl 16 +102,0x000000dd |
54 | mcall 38,27 shl 16 +193,102 shl 16 +102,0x000000dd |
62 | 55 | ||
Line 81... | Line 74... | ||
81 | 74 | ||
82 | mov ebx,39*65536+65 |
75 | mov ebx,39*65536+65 |
83 | mov edx,label6 |
76 | mov edx,label6 |
Line 84... | Line -... | ||
84 | mcall |
- | |
85 | - | ||
86 | mov al,12 ;end of redraw |
77 | mcall |
Line 87... | Line 78... | ||
87 | mov ebx,2 |
78 | |
Line 88... | Line 79... | ||
88 | mcall |
79 | mcall 12,2 |
89 | 80 | ||
Line 115... | Line 106... | ||
115 | button: |
106 | button: |
116 | mov al,17 ; now eax=17 - get pressed button id |
107 | mov al,17 ; now eax=17 - get pressed button id |
117 | mcall |
108 | mcall |
118 | xchg al,ah |
109 | xchg al,ah |
119 | dec eax |
110 | dec eax |
120 | jz power_off |
111 | jz close_1 |
121 | dec eax |
112 | dec eax |
122 | jz restart_kernel |
113 | jz restart_kernel |
123 | dec eax |
114 | dec eax |
124 | jz restart |
115 | jz restart |
125 | dec eax |
116 | dec eax |
126 | jnz run_rdsave |
117 | jnz run_rdsave |
127 | ; we have only one button left, this is close button |
118 | ; we have only one button left, this is close button |
128 | ; dec eax |
119 | ; dec eax |
129 | ; jnz still |
120 | ; jnz still |
130 | close_1: |
- | |
131 | or eax,-1 |
- | |
132 | mcall |
- | |
133 | - | ||
134 | power_off: |
121 | power_off: |
135 | push 2 |
122 | push 2 |
136 | jmp mcall_and_close |
123 | jmp mcall_and_close |
Line -... | Line 124... | ||
- | 124 | ||
- | 125 | close_1: |
|
- | 126 | or eax,-1 |
|
- | 127 | mcall |
|
137 | 128 | ||
138 | restart: |
129 | restart: |
139 | push 3 |
130 | push 3 |
Line 140... | Line 131... | ||
140 | jmp mcall_and_close |
131 | jmp mcall_and_close |