Subversion Repositories Kolibri OS

Rev

Rev 6362 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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