Rev 1707 | Rev 1899 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1707 | Rev 1859 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. 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: 1707 $ |
8 | $Revision: 1859 $ |
9 | 9 | ||
10 | 10 | ||
Line 33... | Line 33... | ||
33 | endg |
33 | endg |
Line 34... | Line 34... | ||
34 | 34 | ||
Line 35... | Line -... | ||
35 | ;include 'm_com.inc' |
- | |
36 | - | ||
37 | - | ||
38 | ;test_mario79: |
- | |
39 | ; push esi |
- | |
40 | ; push eax |
- | |
41 | ; mov [write_error_to],process_test_m79+43 |
- | |
42 | ; movzx eax,al ;[DevErrorCode] |
- | |
43 | ; call writehex |
- | |
44 | ; mov esi,process_test_m79 |
- | |
45 | ; call sys_msg_board_str |
- | |
46 | ; pop eax |
- | |
47 | ; pop esi |
- | |
48 | ; ret |
35 | ;include 'm_com.inc' |
49 | ;process_test_m79 db 'K : Process - test Mario79 error 00000000',13,10,0 |
36 | |
Line 50... | Line 37... | ||
50 | 37 | ||
51 | draw_mouse_under: |
38 | draw_mouse_under: |
Line 107... | Line 94... | ||
107 | movzx eax,word [MOUSE_Y] |
94 | movzx eax,word [MOUSE_Y] |
108 | movzx ebx,word [MOUSE_X] |
95 | movzx ebx,word [MOUSE_X] |
109 | push eax |
96 | push eax |
110 | push ebx |
97 | push ebx |
Line 111... | Line 98... | ||
111 | 98 | ||
112 | mov ecx, [Screen_Max_X] |
99 | mov ecx, ebx ; <<<< |
- | 100 | shr ecx, 1 |
|
- | 101 | imul ecx, [_WinMapWidth] |
|
- | 102 | shr eax, 1 |
|
113 | inc ecx |
103 | shr eax, 1 |
114 | mul ecx |
104 | add eax, ecx |
115 | add eax, [_WinMapAddress] |
105 | add eax, [_WinMapAddress] |
116 | movzx edx, byte [ebx+eax] |
106 | movzx edx, byte [ebx+eax] |
117 | shl edx, 8 |
107 | shl edx, 8 |
Line 284... | Line 274... | ||
284 | mov edx,[CURRENT_TASK] |
274 | mov edx,[CURRENT_TASK] |
285 | shl edx,5 |
275 | shl edx,5 |
286 | add edx,window_data |
276 | add edx,window_data |
287 | movzx eax, word [MOUSE_X] |
277 | movzx eax, word [MOUSE_X] |
288 | movzx ebx, word [MOUSE_Y] |
278 | movzx ebx, word [MOUSE_Y] |
- | 279 | mov ecx, ebx ; <<<< |
|
- | 280 | shr ecx, 1 |
|
289 | mov ecx,[Screen_Max_X] |
281 | imul ecx, [_WinMapWidth] |
290 | inc ecx |
282 | shr eax, 1 |
291 | imul ecx,ebx |
283 | shr eax, 1 |
292 | add ecx,eax |
284 | add ecx, eax |
293 | add ecx, [_WinMapAddress] |
285 | add ecx, [_WinMapAddress] |
294 | mov eax, [CURRENT_TASK] |
286 | mov eax, [CURRENT_TASK] |
295 | movzx ebx, byte [ecx] |
287 | movzx ebx, byte [ecx] |
296 | cmp eax,ebx |
288 | cmp eax,ebx |
Line 452... | Line 444... | ||
452 | imul eax,[mouse_speed_factor] |
444 | imul eax,[mouse_speed_factor] |
453 | ;pop edx |
445 | ;pop edx |
454 | @@: |
446 | @@: |
455 | ret |
447 | ret |
Line -... | Line 448... | ||
- | 448 | ||
- | 449 | diff16 "window code end",0,$ |