Subversion Repositories Kolibri OS

Rev

Rev 602 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 602 Rev 633
Line 5... Line 5...
5
	mov	eax, 40
5
	mov	eax, 40
6
	mov	ebx, 00100000b
6
	mov	ebx, 00100000b
7
	int	0x40
7
	int	0x40
Line 8... Line 8...
8
 
8
 
9
   detect_still:
9
   detect_still:
10
	;mov     eax, 10        ; Ðàáîòàåò íå ñîâñåì êîððåêòíî, ïî÷åìó õç.
10
	;mov     eax, 10        ;  ¡®â ¥â ­¥ ᮢᥬ ª®à४⭮, ¯®ç¥¬ã å§.
11
	mov	eax, 23
11
	mov	eax, 23
12
	mov	ebx, 4
12
	mov	ebx, 4
13
	int	0x40
13
	int	0x40
14
	;cmp     eax, 6
14
	;cmp     eax, 6
Line 15... Line 15...
15
	;jne     detect_still
15
	;jne     detect_still
16
 
16
 
17
	mov	eax, 37
17
	mov	eax, 37
Line 18... Line 18...
18
	mov	ebx, 2		; Îïðàøèâàåì êíîïêè ìûøè
18
	mov	ebx, 2		; Ž¯à è¨¢ ¥¬ ª­®¯ª¨ ¬ëè¨
19
	int	0x40
19
	int	0x40
Line 20... Line 20...
20
 
20
 
21
	test	eax, ebx	; test    eax, 00000010b Èíòåðåñóåò òîëüêî ïðàâàÿ êíîïêà
21
	test	eax, ebx	; test    eax, 00000010b ˆ­â¥à¥áã¥â ⮫쪮 ¯à ¢ ï ª­®¯ª 
22
	jz	detect_still	; Íåò - ? Âîçâðàùàåìñÿ â ãëàâíûé öèêë ïîòîêà
22
	jz	detect_still	; ¥â - ? ‚®§¢à é ¥¬áï ¢ £« ¢­ë© 横« ¯®â®ª 
23
 
23
 
Line 48... Line 48...
48
	inc	edx
48
	inc	edx
Line 49... Line 49...
49
 
49
 
50
   detect_button:
50
   detect_button:
51
	mov	ebx, edx
51
	mov	ebx, edx
-
 
52
	imul	ebx, 6 * 10
52
	imul	ebx, 6 * 10
53
; // Alver  26.08.2007 // {
-
 
54
;	add	ebx, 4
-
 
55
	add	ebx, 64
Line 53... Line 56...
53
	add	ebx, 4
56
; } \\ Alver \\
54
 
57
 
Line 55... Line 58...
55
	cmp	eax, ebx
58
	cmp	eax, ebx
Line 72... Line 75...
72
 
75
 
Line 73... Line 76...
73
	mov	[y_coord], ax
76
	mov	[y_coord], ax
Line -... Line 77...
-
 
77
 
-
 
78
	mov	[n_slot], ecx
-
 
79
 
-
 
80
	mov	eax, 9
74
 
81
	mov	ebx, procinfo_for_detect
75
	mov	[n_slot], ecx
82
	int	0x40
76
 
83
 
77
	mov	eax, 51
84
	mov	eax, 51
78
	mov	ebx, 1
85
	mov	ebx, 1
Line 87... Line 94...
87
   @@:
94
   @@:
88
	cmp	edx, [max_applications]
95
	cmp	edx, [max_applications]
89
	jae	detect_still
96
	jae	detect_still
90
	inc	edx
97
	inc	edx
91
	jmp	detect_button
98
	jmp	detect_button
92
-
 
93
-
 
94
-
 
95
-
 
96
-