Subversion Repositories Kolibri OS

Rev

Rev 6364 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6364 Rev 6385
1
;---------------------------------------------
1
;---------------------------------------------
2
;-----------panel BUTTONS---------------------
2
;-----------panel BUTTONS---------------------
3
;---------------------------------------------
3
;---------------------------------------------
4
buttons:
4
buttons:
5
 
5
 
6
	cmp [Current_instrument],21
6
	cmp [Current_instrument],21
7
	jne @f
7
	jne @f
8
	cmp [instrument_used],1
8
	cmp [instrument_used],1
9
	jne @f
9
	jne @f
10
	cmp [Activate_instrument],0
10
	cmp [Activate_instrument],0
11
	jne @f
11
	jne @f
12
	cmp [crossing],1
12
		;mov [crossing],2
13
	jne @f
-
 
14
		mov [finishing_crossing],1
-
 
15
		call TakeButtonInstruments
13
		call TakeButtonInstruments
16
		jmp still
14
		jmp still
17
	@@:
15
	@@:
18
 
16
 
19
	mcall SF_GET_BUTTON
17
	mcall SF_GET_BUTTON
20
 
18
 
21
	shr eax,8
19
	shr eax,8
22
 
20
 
23
	cmp eax,1
21
	cmp eax,1
24
	jne no_exit
22
	jne no_exit
25
		mov eax,CursorsID
23
		mov eax,CursorsID
26
		call delete_cursors
24
		call delete_cursors
27
		mcall SF_TERMINATE_PROCESS
25
		mcall SF_TERMINATE_PROCESS
28
	no_exit:
26
	no_exit:
29
 
27
 
30
	mov [Current_instrument],eax
28
	mov [Current_instrument],eax
31
	call button_handler_main_menu
29
	call button_handler_main_menu
32
 
30
 
33
	cmp eax,10
31
	cmp eax,10
34
	jl still
32
	jl still
35
 
33
 
36
	;save instrumnets 10-40
34
	;save instrumnets 10-40
37
	cmp eax,40
35
	cmp eax,40
38
	jae no_save_last_instrument
36
	jae @f
39
 
-
 
40
	 mov [Last_instrument],eax
37
		mov [Last_instrument],eax
41
 
38
	@@:
42
	no_save_last_instrument:
-
 
43
 
39
 
44
	cmp eax,10
40
	cmp eax,10
45
	je still
41
	je still
46
 
42
 
47
	cmp eax,14
43
	cmp eax,14
48
	je still
44
	je still
49
 
45
 
50
	cmp eax,11
46
	cmp eax,11
51
	je still
47
	je still
52
 
48
 
53
	cmp eax,13
49
	cmp eax,13
54
	je still
50
	je still
55
 
51
 
56
	cmp eax,12
52
	cmp eax,12
57
	je still
53
	je still
58
 
54
 
59
	cmp eax,51
55
	cmp eax,51
60
	jne no_palette_
56
	jne @f
61
 
-
 
62
	call TakeButtonInstruments
57
		call TakeButtonInstruments
63
	jmp still
58
		jmp still
64
 
59
	@@:
65
	no_palette_:
-
 
66
 
60
 
67
	cmp eax,17
61
	cmp eax,17
68
	je still
62
	je still
69
 
63
 
70
	cmp eax,21
64
	cmp eax,21
71
	jne no_allocation__
-
 
72
 
-
 
73
	and [Activate_instrument],0
-
 
74
	jmp still
65
	je still
75
 
-
 
76
	no_allocation__:
-
 
77
 
66
 
78
	cmp eax,20
67
	cmp eax,20
79
	jne no_kontur__
-
 
80
 
68
	jne @f
81
	and [instrument_used],0
69
		and [instrument_used],0
82
	jmp still
70
		jmp still
83
 
-
 
84
	no_kontur__:
71
	@@:
85
 
72
 
86
	call TakeButtonInstruments
73
	call TakeButtonInstruments
87
	jmp still
74
	jmp still