Rev 9850 | Rev 9930 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9850 | Rev 9910 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 9850 $ |
8 | $Revision: 9910 $ |
9 | 9 | ||
10 | 10 | ||
Line 59... | Line 59... | ||
59 | @@: |
59 | @@: |
60 | pushad |
60 | pushad |
61 | xor ecx, ecx |
61 | xor ecx, ecx |
62 | xor edx, edx |
62 | xor edx, edx |
Line 63... | Line 63... | ||
63 | 63 | ||
64 | mres: |
64 | .mres: |
65 | movzx eax, word [X_UNDER] |
65 | movzx eax, word [X_UNDER] |
66 | movzx ebx, word [Y_UNDER] |
66 | movzx ebx, word [Y_UNDER] |
67 | add eax, ecx |
67 | add eax, ecx |
68 | add ebx, edx |
68 | add ebx, edx |
Line 84... | Line 84... | ||
84 | call __sys_putpixel |
84 | call __sys_putpixel |
85 | pop edx |
85 | pop edx |
86 | pop ecx |
86 | pop ecx |
87 | inc ecx |
87 | inc ecx |
88 | cmp ecx, 16 |
88 | cmp ecx, 16 |
89 | jnz mres |
89 | jnz .mres |
- | 90 | ||
90 | xor ecx, ecx |
91 | xor ecx, ecx |
91 | inc edx |
92 | inc edx |
92 | cmp edx, 24 |
93 | cmp edx, 24 |
93 | jnz mres |
94 | jnz .mres |
- | 95 | ||
94 | popad |
96 | popad |
95 | ret |
97 | ret |
Line 96... | Line 98... | ||
96 | 98 | ||
Line 184... | Line 186... | ||
184 | push ebx |
186 | push ebx |
185 | mov ecx, 0 |
187 | mov ecx, 0 |
186 | mov edx, 0 |
188 | mov edx, 0 |
187 | ;-------------------------------------- |
189 | ;-------------------------------------- |
188 | align 4 |
190 | align 4 |
189 | drm: |
191 | .drm: |
190 | push eax |
192 | push eax |
191 | push ebx |
193 | push ebx |
192 | push ecx |
194 | push ecx |
193 | push edx |
195 | push edx |
194 | ; helloworld |
196 | ; helloworld |
Line 241... | Line 243... | ||
241 | pop ecx |
243 | pop ecx |
242 | mov ebx, [esp+0] ; pure y coord again |
244 | mov ebx, [esp+0] ; pure y coord again |
243 | mov eax, [esp+4] ; and x |
245 | mov eax, [esp+4] ; and x |
244 | inc ecx ; +1 cycle |
246 | inc ecx ; +1 cycle |
245 | cmp ecx, 16 ; if more than 16 |
247 | cmp ecx, 16 ; if more than 16 |
246 | jnz drm |
248 | jnz .drm |
- | 249 | ||
247 | xor ecx, ecx |
250 | xor ecx, ecx |
248 | inc edx |
251 | inc edx |
249 | cmp edx, 24 |
252 | cmp edx, 24 |
250 | jnz drm |
253 | jnz .drm |
- | 254 | ||
251 | add esp, 8 |
255 | add esp, 8 |
252 | popad |
256 | popad |
253 | ret |
257 | ret |
Line 254... | Line 258... | ||
254 | 258 |