Subversion Repositories Kolibri OS

Rev

Rev 3731 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3731 Rev 3840
Line 17... Line 17...
17
; add memory for sorting
17
; add memory for sorting
18
   mov	 ecx,[right_folder_data]
18
   mov	 ecx,[right_folder_data]
19
   sub	 ecx,[left_folder_data]
19
   sub	 ecx,[left_folder_data]
20
   mov	 ebx,[appl_memory]
20
   mov	 ebx,[appl_memory]
21
   add	 ecx,ebx
21
   add	 ecx,ebx
-
 
22
   add   ecx,4 ; äëÿ ñòðàõîâêè
22
   push  ebx
23
   push  ebx
23
   mov	 [appl_memory],ecx
24
   mov	 [appl_memory],ecx
24
   mcall 64,1
25
   mcall 64,1
25
   mov	 edi,[esp]
26
   mov	 edi,[esp]
26
   mov	 ecx,[appl_memory]
27
   mov	 ecx,[appl_memory]
Line 44... Line 45...
44
   shr	 ecx,2
45
   shr	 ecx,2
45
   cld
46
   cld
46
   rep	 movsd
47
   rep	 movsd
47
; sub memory for sorting
48
; sub memory for sorting
48
   pop	 ecx
49
   pop	 ecx
-
 
50
   add   ecx,4 ; äëÿ ñòðàõîâêè
49
   mov	 [appl_memory],ecx
51
   mov	 [appl_memory],ecx
50
   mcall 64,1
52
   mcall 64,1
51
   cmp	 [exit_to_dir],0
53
   cmp	 [exit_to_dir],0
52
   je	 @f
54
   je	 @f
53
.return_exit_to_dir:
55
.return_exit_to_dir:
Line 136... Line 138...
136
@@:
138
@@:
137
   call  sort_by_name.start
139
   call  sort_by_name.start
138
   je	 .1
140
   je	 .1
139
   ja	 .add_counter
141
   ja	 .add_counter
140
.no_add_counter:
142
.no_add_counter:
-
 
143
;	pushad
-
 
144
;	pushfd
-
 
145
;	dps	'left_type_sort'
-
 
146
;	newline
-
 
147
;	popfd
-
 
148
;	popad
141
   call  move_area_for_bdvk
149
   call  move_area_for_bdvk
142
   pop	 edi esi
150
   pop	 edi esi
143
   jmp	.end
151
   jmp	.end
144
.1:
152
.1:
145
   cmp	 [dir_or_file],1
153
   cmp	 [dir_or_file],1
Line 577... Line 585...
577
   sub	 esi,304
585
   sub	 esi,304
578
   mov	 ecx,edi
586
   mov	 ecx,edi
579
   sub	 ecx,ebx
587
   sub	 ecx,ebx
580
   sub	 ecx,eax
588
   sub	 ecx,eax
581
   shr	 ecx,2
589
   shr	 ecx,2
-
 
590
;	pushad
-
 
591
;	pushfd
-
 
592
;	dph	[appl_memory]
-
 
593
;	newline
-
 
594
;	dps	'ECX:'
-
 
595
;	dpd	ecx
-
 
596
;	newline
-
 
597
;	dps	'ESI:'
-
 
598
;	dpd	esi
-
 
599
;	newline
-
 
600
;	dps	'EDI:'
-
 
601
;	dpd	edi
-
 
602
;	newline
-
 
603
;	popfd
-
 
604
;	popad
582
   std
605
   std
583
   rep	 movsd
606
   rep	 movsd
-
 
607
;	pushad
-
 
608
;	pushfd
-
 
609
;	dps	'move_area_for_bdvk END'
-
 
610
;	newline
-
 
611
;	popfd
584
 
612
;	popad
585
;   mov	 eax,ecx
613
;   mov	 eax,ecx
586
;   mov	 ebx,304
614
;   mov	 ebx,304
587
;   mov	 edx,0
615
;   mov	 edx,0
588
;   div	 ebx
616
;   div	 ebx
589
;   mov	 ecx,eax
617
;   mov	 ecx,eax
Line 652... Line 680...
652
; add memory for sorting
680
; add memory for sorting
653
   mov	 ecx,[appl_memory]
681
   mov	 ecx,[appl_memory]
654
   push  ecx
682
   push  ecx
655
   sub	 ecx,[right_folder_data]
683
   sub	 ecx,[right_folder_data]
656
   add	 ecx,[esp]
684
   add	 ecx,[esp]
-
 
685
   add   ecx,4 ; äëÿ ñòðàõîâêè
657
   mov	 [appl_memory],ecx
686
   mov	 [appl_memory],ecx
658
   mcall 64,1
687
   mcall 64,1
659
   mov	 edi,[esp]
688
   mov	 edi,[esp]
660
   mov	 ecx,[appl_memory]
689
   mov	 ecx,[appl_memory]
661
   sub	 ecx,edi
690
   sub	 ecx,edi
Line 678... Line 707...
678
   shr	 ecx,2
707
   shr	 ecx,2
679
   cld
708
   cld
680
   rep	 movsd
709
   rep	 movsd
681
; sub memory for sorting
710
; sub memory for sorting
682
   pop	 ecx
711
   pop	 ecx
-
 
712
   add   ecx,4 ; äëÿ ñòðàõîâêè
683
   mov	 [appl_memory],ecx
713
   mov	 [appl_memory],ecx
684
   mcall 64,1
714
   mcall 64,1
685
   cmp	 [exit_to_dir],0
715
   cmp	 [exit_to_dir],0
686
   je	 @f
716
   je	 @f
687
.return_exit_to_dir:
717
.return_exit_to_dir:
Line 764... Line 794...
764
@@:
794
@@:
765
   call  sort_by_name.start
795
   call  sort_by_name.start
766
   je	 .1
796
   je	 .1
767
   ja	 .add_counter
797
   ja	 .add_counter
768
.no_add_counter:
798
.no_add_counter:
-
 
799
;	pushad
-
 
800
;	pushfd
-
 
801
;	dps	'left_type_sort'
-
 
802
;	newline
-
 
803
;	popfd
-
 
804
;	popad
769
   call  move_area_for_bdvk
805
   call  move_area_for_bdvk
770
   pop	 edi esi
806
   pop	 edi esi
771
   jmp	.end
807
   jmp	.end
772
.1:
808
.1:
773
   cmp	 [dir_or_file],1
809
   cmp	 [dir_or_file],1