2014-03-12 03:26:12 +01:00
|
|
|
;------------------------------------------------------------------------------
|
2011-01-29 19:25:55 +01:00
|
|
|
button:
|
2021-08-05 14:08:28 +02:00
|
|
|
mcall 17
|
2014-03-12 03:26:12 +01:00
|
|
|
;--------------------------------------
|
2011-01-29 19:25:55 +01:00
|
|
|
.1:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,101
|
|
|
|
je f_key_f1
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,102
|
|
|
|
je f_key_f2
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,103
|
|
|
|
je f_key_f3 ;sort_name
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,104
|
|
|
|
je f_key_f4 ;sort_type
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,105
|
|
|
|
je f_key_f5 ;sort_size
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,106
|
|
|
|
je f_key_f6 ;sort_date
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,107
|
|
|
|
je f_key_f7 ;create dir
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,108
|
|
|
|
je f_key_f8 ;delete_file
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,109
|
|
|
|
je f_key_f9 ;create file
|
|
|
|
|
|
|
|
cmp ah,112
|
|
|
|
je f_key_f12
|
2014-03-12 03:26:12 +01:00
|
|
|
;--------------------------------------
|
|
|
|
.120:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,120
|
|
|
|
jb .140
|
|
|
|
|
|
|
|
cmp ah,139
|
|
|
|
ja .140
|
|
|
|
|
|
|
|
sub ah,120
|
|
|
|
movzx eax,ah
|
|
|
|
imul eax,10
|
|
|
|
add eax,retrieved_devices_table+1
|
|
|
|
mov esi,eax ; selected path
|
|
|
|
|
|
|
|
cmp [select_panel_counter],0
|
|
|
|
jne @f
|
|
|
|
|
|
|
|
call copy_folder_name
|
|
|
|
jmp left_panel_read_folder
|
2014-03-12 03:26:12 +01:00
|
|
|
;--------------------------------------
|
|
|
|
@@:
|
2021-08-05 14:08:28 +02:00
|
|
|
call copy_folder_name_1
|
|
|
|
jmp right_panel_read_folder
|
2014-03-12 03:26:12 +01:00
|
|
|
;--------------------------------------
|
|
|
|
.140:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,140
|
|
|
|
je draw_left_select_disk_menu
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,141
|
|
|
|
je draw_right_select_disk_menu
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,142
|
|
|
|
je left_sort_name
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,143
|
|
|
|
je left_sort_type
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,144
|
|
|
|
je left_sort_size
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,145
|
|
|
|
je left_sort_date
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,146
|
|
|
|
je right_sort_name
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,147
|
|
|
|
je right_sort_type
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,148
|
|
|
|
je right_sort_size
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,149
|
|
|
|
je right_sort_date
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,150
|
|
|
|
je exit_dir_1
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,151
|
|
|
|
je reload_dir
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,152
|
|
|
|
je create_directory
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,153
|
|
|
|
je copy_file_f5
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,154
|
|
|
|
je move_file_f6
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah,157
|
|
|
|
je delete_file
|
2014-03-12 03:26:12 +01:00
|
|
|
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp ah, 1
|
|
|
|
jne still
|
2014-03-12 03:26:12 +01:00
|
|
|
;--------------------------------------
|
|
|
|
.exit:
|
2021-08-05 14:08:28 +02:00
|
|
|
mcall -1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
reload_dir:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [select_panel_counter],0
|
|
|
|
jne @f
|
|
|
|
call proc_read_left_folder
|
|
|
|
; mov [left_panel_clear_all],1
|
|
|
|
call draw_left_panel
|
|
|
|
jmp still
|
2011-01-29 19:25:55 +01:00
|
|
|
@@:
|
2021-08-05 14:08:28 +02:00
|
|
|
call proc_read_right_folder
|
|
|
|
; mov [right_panel_clear_all],1
|
|
|
|
call draw_right_panel
|
|
|
|
jmp still
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
reload_dir_all:
|
2021-08-05 14:08:28 +02:00
|
|
|
call proc_read_left_folder
|
|
|
|
call proc_read_right_folder
|
|
|
|
jmp red
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
exit_dir_1:
|
2021-08-05 14:08:28 +02:00
|
|
|
mov [exit_dir],1
|
|
|
|
jmp key_28.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
left_panel_read_folder:
|
2021-08-05 14:08:28 +02:00
|
|
|
mov [left_start_draw_cursor_line],0
|
|
|
|
jmp proc_read_folder
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
right_panel_read_folder:
|
2021-08-05 14:08:28 +02:00
|
|
|
mov [right_start_draw_cursor_line],0
|
|
|
|
jmp proc_read_folder_1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
left_sort_name:
|
2021-08-05 14:08:28 +02:00
|
|
|
xor eax,eax
|
|
|
|
cmp [left_sort_flag],eax
|
|
|
|
je still
|
|
|
|
mov [left_sort_flag],eax
|
|
|
|
jmp left_sort_date.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
left_sort_type:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [left_sort_flag],1
|
|
|
|
je still
|
|
|
|
mov [left_sort_flag],1
|
|
|
|
jmp left_sort_date.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
left_sort_size:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [left_sort_flag],2
|
|
|
|
je still
|
|
|
|
mov [left_sort_flag],2
|
|
|
|
jmp left_sort_date.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
left_sort_date:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [left_sort_flag],3
|
|
|
|
je still
|
|
|
|
mov [left_sort_flag],3
|
2011-01-29 19:25:55 +01:00
|
|
|
.1:
|
2021-08-05 14:08:28 +02:00
|
|
|
call draw_left_sort_button
|
|
|
|
call left_sort_files
|
|
|
|
; mov [left_panel_clear_all],1
|
|
|
|
call draw_left_panel
|
|
|
|
jmp still
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
right_sort_name:
|
2021-08-05 14:08:28 +02:00
|
|
|
xor eax,eax
|
|
|
|
cmp [right_sort_flag],eax
|
|
|
|
je still
|
|
|
|
mov [right_sort_flag],eax
|
|
|
|
jmp right_sort_date.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
right_sort_type:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [right_sort_flag],1
|
|
|
|
je still
|
|
|
|
mov [right_sort_flag],1
|
|
|
|
jmp right_sort_date.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
right_sort_size:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [right_sort_flag],2
|
|
|
|
je still
|
|
|
|
mov [right_sort_flag],2
|
|
|
|
jmp right_sort_date.1
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
right_sort_date:
|
2021-08-05 14:08:28 +02:00
|
|
|
cmp [right_sort_flag],3
|
|
|
|
je still
|
|
|
|
mov [right_sort_flag],3
|
2011-01-29 19:25:55 +01:00
|
|
|
.1:
|
2021-08-05 14:08:28 +02:00
|
|
|
call draw_right_sort_button
|
|
|
|
call right_sort_files
|
|
|
|
call draw_right_panel
|
|
|
|
jmp still
|
2011-01-29 19:25:55 +01:00
|
|
|
;---------------------------------------------------------------------
|