Subversion Repositories Kolibri OS

Rev

Rev 6364 | 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
6385 IgorA 12
		;mov [crossing],2
6359 IgorA 13
		call TakeButtonInstruments
6362 IgorA 14
		jmp still
6359 IgorA 15
	@@:
255 heavyiron 16
 
6359 IgorA 17
	mcall SF_GET_BUTTON
255 heavyiron 18
 
19
	shr eax,8
20
 
21
	cmp eax,1
22
	jne no_exit
6359 IgorA 23
		mov eax,CursorsID
24
		call delete_cursors
25
		mcall SF_TERMINATE_PROCESS
255 heavyiron 26
	no_exit:
27
 
28
	mov [Current_instrument],eax
6359 IgorA 29
	call button_handler_main_menu
255 heavyiron 30
 
31
	cmp eax,10
32
	jl still
33
 
34
	;save instrumnets 10-40
35
	cmp eax,40
6385 IgorA 36
	jae @f
37
		mov [Last_instrument],eax
38
	@@:
255 heavyiron 39
 
40
	cmp eax,10
41
	je still
42
 
43
	cmp eax,14
44
	je still
45
 
46
	cmp eax,11
47
	je still
48
 
49
	cmp eax,13
50
	je still
51
 
52
	cmp eax,12
53
	je still
54
 
55
	cmp eax,51
6385 IgorA 56
	jne @f
57
		call TakeButtonInstruments
58
		jmp still
59
	@@:
255 heavyiron 60
 
61
	cmp eax,17
62
	je still
63
 
64
	cmp eax,21
6385 IgorA 65
	je still
255 heavyiron 66
 
67
	cmp eax,20
6385 IgorA 68
	jne @f
69
		and [instrument_used],0
70
		jmp still
71
	@@:
255 heavyiron 72
 
73
	call TakeButtonInstruments
74
	jmp still