Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. button:
  2.     mcall 17
  3. .1:
  4.     cmp   ah,101
  5.     je   f_key_f1
  6.     cmp   ah,102
  7.     je   f_key_f2
  8.     cmp   ah,103
  9.     je   f_key_f3 ;sort_name
  10.     cmp   ah,104
  11.     je   f_key_f4 ;sort_type
  12.     cmp   ah,105
  13.     je   f_key_f5 ;sort_size
  14.     cmp   ah,106
  15.     je   f_key_f6 ;sort_date
  16.     cmp   ah,107
  17.     je   f_key_f7 ;create dir
  18.     cmp   ah,108
  19.     je   f_key_f8 ;delete_file
  20.     cmp   ah,112
  21.     je   f_key_f12
  22.     cmp   ah,120
  23.     jne   .121
  24.     mov  esi,read_folder_device_name.rd
  25.     call copy_folder_name
  26.     jmp  left_panel_read_folder
  27.  .121:
  28.     cmp   ah,121
  29.     jne   .122
  30.     mov  esi,read_folder_device_name.fd
  31.     call copy_folder_name
  32.     jmp  left_panel_read_folder
  33.  .122:
  34.     cmp   ah,122
  35.     jne   .123
  36.     mov  esi,read_folder_device_name.hd0
  37.     call copy_folder_name
  38.     jmp  left_panel_read_folder
  39.  .123:
  40.     cmp   ah,123
  41.     jne   .124
  42.     mov  esi,read_folder_device_name.hd1
  43.     call copy_folder_name
  44.     jmp  left_panel_read_folder
  45.  .124:
  46.     cmp   ah,124
  47.     jne   .125
  48.     mov  esi,read_folder_device_name.hd2
  49.     call copy_folder_name
  50.     jmp  left_panel_read_folder
  51.  .125:
  52.     cmp   ah,125
  53.     jne   .126
  54.     mov  esi,read_folder_device_name.hd3
  55.     call copy_folder_name
  56.     jmp  left_panel_read_folder
  57.  .126:
  58.     cmp   ah,126
  59.     jne   .127
  60.     mov  esi,read_folder_device_name.cd0
  61.     call copy_folder_name
  62.     jmp  left_panel_read_folder
  63.  .127:
  64.     cmp   ah,127
  65.     jne   .128
  66.     mov  esi,read_folder_device_name.cd1
  67.     call copy_folder_name
  68.     jmp  left_panel_read_folder
  69.  .128:
  70.     cmp   ah,128
  71.     jne   .129
  72.     mov  esi,read_folder_device_name.cd2
  73.     call copy_folder_name
  74.     jmp  left_panel_read_folder
  75.  .129:
  76.     cmp   ah,129
  77.     jne   .130
  78.     mov  esi,read_folder_device_name.cd3
  79.     call copy_folder_name
  80.     jmp  left_panel_read_folder
  81.  .130:
  82.     cmp   ah,130
  83.     jne   .131
  84.     mov  esi,read_folder_device_name.rd
  85.     call copy_folder_name_1
  86.     jmp  right_panel_read_folder
  87.  .131:
  88.     cmp   ah,131
  89.     jne   .132
  90.     mov  esi,read_folder_device_name.fd
  91.     call copy_folder_name_1
  92.     jmp  right_panel_read_folder
  93.  .132:
  94.     cmp   ah,132
  95.     jne   .133
  96.     mov  esi,read_folder_device_name.hd0
  97.     call copy_folder_name_1
  98.     jmp  right_panel_read_folder
  99.  .133:
  100.     cmp   ah,133
  101.     jne   .134
  102.     mov  esi,read_folder_device_name.hd1
  103.     call copy_folder_name_1
  104.     jmp  right_panel_read_folder
  105.  .134:
  106.     cmp   ah,134
  107.     jne   .135
  108.     mov  esi,read_folder_device_name.hd2
  109.     call copy_folder_name_1
  110.     jmp  right_panel_read_folder
  111.  .135:
  112.     cmp   ah,135
  113.     jne   .136
  114.     mov  esi,read_folder_device_name.hd3
  115.     call copy_folder_name_1
  116.     jmp  right_panel_read_folder
  117.  .136:
  118.     cmp   ah,136
  119.     jne   .137
  120.     mov  esi,read_folder_device_name.cd0
  121.     call copy_folder_name_1
  122.     jmp  right_panel_read_folder
  123.  .137:
  124.     cmp   ah,137
  125.     jne   .138
  126.     mov  esi,read_folder_device_name.cd1
  127.     call copy_folder_name_1
  128.     jmp  right_panel_read_folder
  129.  .138:
  130.     cmp   ah,138
  131.     jne   .139
  132.     mov   esi,read_folder_device_name.cd2
  133.     call  copy_folder_name_1
  134.     jmp   right_panel_read_folder
  135.  .139:
  136.     cmp   ah,139
  137.     jne   .140
  138.     mov   esi,read_folder_device_name.cd3
  139.     call  copy_folder_name_1
  140.     jmp   right_panel_read_folder
  141.  .140:
  142.     cmp   ah,140
  143.     je    draw_left_select_disk_menu
  144.     cmp   ah,141
  145.     je    draw_right_select_disk_menu
  146.     cmp   ah,142
  147.     je    left_sort_name
  148.     cmp   ah,143
  149.     je    left_sort_type
  150.     cmp   ah,144
  151.     je    left_sort_size
  152.     cmp   ah,145
  153.     je    left_sort_date
  154.     cmp   ah,146
  155.     je    right_sort_name
  156.     cmp   ah,147
  157.     je    right_sort_type
  158.     cmp   ah,148
  159.     je    right_sort_size
  160.     cmp   ah,149
  161.     je    right_sort_date
  162.     cmp   ah,150
  163.     je    exit_dir_1
  164.     cmp   ah,151
  165.     je    reload_dir
  166.     cmp   ah,152
  167.     je    create_directory
  168.     cmp   ah,153
  169.     je    copy_file_f5
  170.     cmp   ah,154
  171.     je    move_file_f6
  172.     cmp   ah,157
  173.     je    delete_file
  174.     cmp   ah, 1
  175.     jne   still
  176.   .exit:
  177.     mcall -1
  178. ;---------------------------------------------------------------------
  179. reload_dir:
  180.     cmp   [select_panel_counter],0
  181.     jne   @f
  182.     call proc_read_left_folder
  183. ;    mov   [left_panel_clear_all],1
  184.     call  draw_left_panel
  185.     jmp  still
  186. @@:
  187.     call proc_read_right_folder
  188. ;    mov   [right_panel_clear_all],1
  189.     call  draw_right_panel
  190.     jmp  still
  191. ;---------------------------------------------------------------------
  192. reload_dir_all:
  193.     call proc_read_left_folder
  194.     call proc_read_right_folder
  195.     jmp  red    
  196. ;---------------------------------------------------------------------
  197. exit_dir_1:
  198.     mov   [exit_dir],1
  199.     jmp   key_28.1
  200. ;---------------------------------------------------------------------
  201. left_panel_read_folder:
  202.     mov   [left_start_draw_cursor_line],0
  203.     jmp   proc_read_folder
  204. ;---------------------------------------------------------------------
  205. right_panel_read_folder:
  206.     mov   [right_start_draw_cursor_line],0
  207.     jmp   proc_read_folder_1
  208. ;---------------------------------------------------------------------
  209. left_sort_name:
  210.     xor   eax,eax
  211.     cmp  [left_sort_flag],eax
  212.     je   still
  213.     mov  [left_sort_flag],eax
  214.     jmp   left_sort_date.1
  215. ;---------------------------------------------------------------------
  216. left_sort_type:
  217.     cmp  [left_sort_flag],1
  218.     je   still
  219.     mov  [left_sort_flag],1
  220.     jmp   left_sort_date.1
  221. ;---------------------------------------------------------------------
  222. left_sort_size:
  223.     cmp  [left_sort_flag],2
  224.     je   still
  225.     mov  [left_sort_flag],2
  226.     jmp   left_sort_date.1
  227. ;---------------------------------------------------------------------
  228. left_sort_date:
  229.     cmp  [left_sort_flag],3
  230.     je   still
  231.     mov  [left_sort_flag],3
  232. .1:
  233.     call  draw_left_sort_button
  234.     call  left_sort_files
  235. ;    mov   [left_panel_clear_all],1
  236.     call draw_left_panel
  237.     jmp   still
  238. ;---------------------------------------------------------------------
  239. right_sort_name:
  240.     xor   eax,eax
  241.     cmp  [right_sort_flag],eax
  242.     je   still
  243.     mov   [right_sort_flag],eax
  244.     jmp   right_sort_date.1
  245. ;---------------------------------------------------------------------
  246. right_sort_type:
  247.     cmp  [right_sort_flag],1
  248.     je   still
  249.     mov   [right_sort_flag],1
  250.     jmp   right_sort_date.1
  251. ;---------------------------------------------------------------------
  252. right_sort_size:
  253.     cmp  [right_sort_flag],2
  254.     je   still
  255.     mov   [right_sort_flag],2
  256.     jmp   right_sort_date.1
  257. ;---------------------------------------------------------------------
  258. right_sort_date:
  259.     cmp  [right_sort_flag],3
  260.     je   still
  261.     mov   [right_sort_flag],3
  262. .1:
  263.     call  draw_right_sort_button
  264.     call  right_sort_files
  265.     call draw_right_panel
  266.     jmp   still
  267. ;---------------------------------------------------------------------