Subversion Repositories Kolibri OS

Rev

Rev 6364 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;---------------------------------------------
  2. ;-----------panel BUTTONS---------------------
  3. ;---------------------------------------------
  4. buttons:
  5.  
  6.         cmp [Current_instrument],21
  7.         jne @f
  8.         cmp [instrument_used],1
  9.         jne @f
  10.         cmp [Activate_instrument],0
  11.         jne @f
  12.                 ;mov [crossing],2
  13.                 call TakeButtonInstruments
  14.                 jmp still
  15.         @@:
  16.  
  17.         mcall SF_GET_BUTTON
  18.  
  19.         shr eax,8
  20.  
  21.         cmp eax,1
  22.         jne no_exit
  23.                 mov eax,CursorsID
  24.                 call delete_cursors
  25.                 mcall SF_TERMINATE_PROCESS
  26.         no_exit:
  27.  
  28.         mov [Current_instrument],eax
  29.         call button_handler_main_menu
  30.  
  31.         cmp eax,10
  32.         jl still
  33.  
  34.         ;save instrumnets 10-40
  35.         cmp eax,40
  36.         jae @f
  37.                 mov [Last_instrument],eax
  38.         @@:
  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
  56.         jne @f
  57.                 call TakeButtonInstruments
  58.                 jmp still
  59.         @@:
  60.  
  61.         cmp eax,17
  62.         je still
  63.  
  64.         cmp eax,21
  65.         je still
  66.  
  67.         cmp eax,20
  68.         jne @f
  69.                 and [instrument_used],0
  70.                 jmp still
  71.         @@:
  72.  
  73.         call TakeButtonInstruments
  74.         jmp still