Rev 1792 | Rev 3731 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1792 | Rev 3378 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | left_sort_files: |
1 | left_sort_files: |
2 | ; mcall 26,9 |
2 | ; mcall 26,9 |
3 | ; mov [timer_tick],eax |
3 | ; mov [timer_tick],eax |
- | 4 | cmp [left_folder_block], 0 |
|
- | 5 | jz .nothing |
|
4 | mov eax,[left_folder_data] |
6 | mov eax,[left_folder_data] |
5 | add eax,32+40 |
7 | add eax,32+40 |
6 | cmp [eax],word '..' |
8 | cmp [eax],word '..' |
7 | jne @f |
9 | jne @f |
8 | cmp [eax+2],byte 0 |
10 | cmp [eax+2],byte 0 |
9 | jne @f |
11 | jne @f |
10 | add [left_folder_data],304 |
12 | add [left_folder_data],304 |
11 | dec [left_folder_block] |
13 | dec [left_folder_block] |
12 | mov [exit_to_dir],1 |
14 | mov [exit_to_dir],1 |
- | 15 | jz .return_exit_to_dir |
|
13 | @@: |
16 | @@: |
14 | ; add memory for sorting |
17 | ; add memory for sorting |
15 | mov ecx,[right_folder_data] |
18 | mov ecx,[right_folder_data] |
16 | sub ecx,[left_folder_data] |
19 | sub ecx,[left_folder_data] |
17 | mov ebx,[appl_memory] |
20 | mov ebx,[appl_memory] |
Line 39... | Line 42... | ||
39 | mov ecx,[right_folder_data] |
42 | mov ecx,[right_folder_data] |
40 | sub ecx,edi |
43 | sub ecx,edi |
41 | shr ecx,2 |
44 | shr ecx,2 |
42 | cld |
45 | cld |
43 | rep movsd |
46 | rep movsd |
- | 47 | ; sub memory for sorting |
|
- | 48 | pop ecx |
|
- | 49 | mov [appl_memory],ecx |
|
- | 50 | mcall 64,1 |
|
44 | cmp [exit_to_dir],0 |
51 | cmp [exit_to_dir],0 |
45 | je @f |
52 | je @f |
- | 53 | .return_exit_to_dir: |
|
46 | sub [left_folder_data],304 |
54 | sub [left_folder_data],304 |
47 | inc [left_folder_block] |
55 | inc [left_folder_block] |
48 | mov [exit_to_dir],0 |
56 | mov [exit_to_dir],0 |
49 | @@: |
57 | @@: |
50 | ; sub memory for sorting |
- | |
51 | pop ecx |
58 | .nothing: |
52 | mov [appl_memory],ecx |
- | |
53 | mcall 64,1 |
- | |
54 | ; mcall 26,9 |
59 | ; mcall 26,9 |
55 | ; sub eax,[timer_tick] |
60 | ; sub eax,[timer_tick] |
56 | ; mov [timer_tick],eax |
61 | ; mov [timer_tick],eax |
57 | ; call draw_window |
62 | ; call draw_window |
58 | ret |
63 | ret |
Line 629... | Line 634... | ||
629 | pop esi |
634 | pop esi |
630 | mov ebx,esi |
635 | mov ebx,esi |
631 | ret |
636 | ret |
632 | ;--------------------------------------------------------------------- |
637 | ;--------------------------------------------------------------------- |
633 | right_sort_files: |
638 | right_sort_files: |
- | 639 | cmp [right_folder_block], 0 |
|
- | 640 | jz .nothing |
|
634 | mov eax,[right_folder_data] |
641 | mov eax,[right_folder_data] |
635 | add eax,32+40 |
642 | add eax,32+40 |
636 | cmp [eax],word '..' |
643 | cmp [eax],word '..' |
637 | jne @f |
644 | jne @f |
638 | cmp [eax+2],byte 0 |
645 | cmp [eax+2],byte 0 |
639 | jne @f |
646 | jne @f |
640 | add [right_folder_data],304 |
647 | add [right_folder_data],304 |
641 | dec [right_folder_block] |
648 | dec [right_folder_block] |
642 | mov [exit_to_dir],1 |
649 | mov [exit_to_dir],1 |
- | 650 | jz .return_exit_to_dir |
|
643 | @@: |
651 | @@: |
644 | ; add memory for sorting |
652 | ; add memory for sorting |
645 | mov ecx,[appl_memory] |
653 | mov ecx,[appl_memory] |
646 | push ecx |
654 | push ecx |
647 | sub ecx,[right_folder_data] |
655 | sub ecx,[right_folder_data] |
Line 668... | Line 676... | ||
668 | add edi,32 |
676 | add edi,32 |
669 | sub ecx,edi |
677 | sub ecx,edi |
670 | shr ecx,2 |
678 | shr ecx,2 |
671 | cld |
679 | cld |
672 | rep movsd |
680 | rep movsd |
- | 681 | ; sub memory for sorting |
|
- | 682 | pop ecx |
|
- | 683 | mov [appl_memory],ecx |
|
- | 684 | mcall 64,1 |
|
673 | cmp [exit_to_dir],0 |
685 | cmp [exit_to_dir],0 |
674 | je @f |
686 | je @f |
- | 687 | .return_exit_to_dir: |
|
675 | sub [right_folder_data],304 |
688 | sub [right_folder_data],304 |
676 | inc [right_folder_block] |
689 | inc [right_folder_block] |
677 | mov [exit_to_dir],0 |
690 | mov [exit_to_dir],0 |
678 | @@: |
691 | @@: |
679 | ; sub memory for sorting |
- | |
680 | pop ecx |
692 | .nothing: |
681 | mov [appl_memory],ecx |
- | |
682 | mcall 64,1 |
- | |
683 | ret |
693 | ret |
684 | ;--------------------------------------------------------------------- |
694 | ;--------------------------------------------------------------------- |
685 | right_name_sort: |
695 | right_name_sort: |
686 | ; sorting of files |
696 | ; sorting of files |
687 | call prepare_data_1 |
697 | call prepare_data_1 |