Subversion Repositories Kolibri OS

Rev

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

Rev 2984 Rev 6619
Line 778... Line 778...
778
	mov	ebp,esp
778
	mov	ebp,esp
Line 779... Line 779...
779
 
779
 
780
	mov	ecx,.y
780
	mov	ecx,.y
781
	or	ecx,ecx
781
	or	ecx,ecx
-
 
782
	jl	.bl_end
-
 
783
  ;      mov     dx,[size_x_var]
782
	jl	.bl_end
784
  ;      dec     dx
783
	cmp	ecx,SIZE_Y
785
	cmp	cx,[size_y_var]  ;SIZE_Y
Line 784... Line 786...
784
	jge	.bl_end
786
	jge	.bl_end
785
 
787
 
786
	cmp	eax,ebx
788
	cmp	eax,ebx
Line 826... Line 828...
826
 
828
 
Line 827... Line 829...
827
  .bl_ok:
829
  .bl_ok:
828
 
830
 
-
 
831
	push	eax
829
	push	eax
832
	push	ebx	      ;store x1, x2
830
	push	ebx	      ;store x1, x2
833
	movzx	edx,word[size_x_var]
831
 
834
	dec	edx
832
	cmp	.x1,SIZE_X
835
	cmp	.x1,edx  ;SIZE_X
833
	jge	.bl_end
836
	jge	.bl_end
Line 834... Line 837...
834
	cmp	.x2,0
837
	cmp	.x2,0
Line 917... Line 920...
917
 
920
 
918
	mov	eax,.dey
921
	mov	eax,.dey
919
	imul	ebx
922
	imul	ebx
920
	add	.ey1,eax
923
	add	.ey1,eax
-
 
924
      @@:
-
 
925
	movzx	edx,word[size_x_var]
921
      @@:
926
	dec	edx
922
	cmp	.x2,SIZE_X
927
	cmp	.x2,edx  ;SIZE_X
923
	jl	@f
928
	jl	@f
924
	mov	.x2,SIZE_X
929
	mov	.x2,edx ;SIZE_X
925
      @@:
930
      @@:
926
	mov	eax,SIZE_X	 ;calc memory begin in buffers
931
	movzx	eax,word[size_x_var]  ;SIZE_X       ;calc memory begin in buffers
927
	mov	ebx,.y
932
	mov	ebx,.y
928
	mul	ebx
933
	mul	ebx
929
	mov	ebx,.x1
934
	mov	ebx,.x1
930
	add	eax,ebx
935
	add	eax,ebx