Subversion Repositories Kolibri OS

Rev

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

Rev 2192 Rev 6619
Line 786... Line 786...
786
 
786
 
Line 787... Line 787...
787
        mov     ecx,.y
787
	mov	ecx,.y
788
        or      ecx,ecx
788
	or	ecx,ecx
789
        jl      .bl_end
789
	jl	.bl_end
790
        cmp     ecx,SIZE_Y
790
	cmp	cx,word[size_y_var]  ;SIZE_Y
791
        jge     .bl_end
791
	jge	.bl_end
Line 792... Line 792...
792
 
792
 
793
        cmp     eax,ebx
793
	cmp	eax,ebx
794
        jl      @f
794
	jl	@f
Line 822... Line 822...
822
        mov     edx,.z1
822
	mov	edx,.z1
823
        xchg    edx,.z2
823
	xchg	edx,.z2
824
        mov     .z1,edx
824
	mov	.z1,edx
825
    @@:
825
    @@:
826
        push    eax ebx
826
	push	eax ebx    ;store x1, x2
827
;        push    ebx           ;store x1, x2
827
	mov	ebx,.x1
-
 
828
	movzx	edx,word[size_x_var]
828
 
829
	cmp	ebx,edx
829
        cmp     .x1,SIZE_X
830
  ;      cmp     bx,word[size_x_var]  ;SIZE_X
830
        jge     .bl_end
831
	jg	.bl_end
831
        cmp     .x2,0
832
	cmp	.x2,0
832
        jle     .bl_end
833
	jle	.bl_end
833
 
834
 
Line 834... Line 835...
834
        mov     ebx,.x2
835
	mov	ebx,.x2
835
        sub     ebx,.x1
836
	sub	ebx,.x1
Line 925... Line 926...
925
        mov     eax,.dey
926
	mov	eax,.dey
926
        imul    ebx
927
	imul	ebx
927
        add     .ey1,eax
928
	add	.ey1,eax
928
      @@:
929
      @@:
-
 
930
	movzx	eax,word[size_x_var] ;SIZE_X  ;word[size_x_var]
-
 
931
	mov	ebx,.x2
-
 
932
	cmp	eax,ebx
-
 
933
	jg	@f
-
 
934
	mov	.x2,eax
-
 
935
      @@:
929
        cmp     .x2,SIZE_X
936
      ;  movd    mm0,eax
930
        jl      @f
937
      ;  movd    mm1,.x2
-
 
938
      ;  pminsw  mm0,mm1
931
        mov     .x2,SIZE_X
939
      ;  movd    .x2,mm0
-
 
940
 ;       cmp     .x2,SIZE_X  ;eax   |
-
 
941
 ;       jl      @f                 |>       this dont work idk cause
-
 
942
 ;       mov     .x2,SIZE_X ;eax    |
932
      @@:
943
      @@:
933
        mov     eax,SIZE_X       ;calc memory begin in buffers
944
      ;  movzx   eax,word[size_x_var]       ;calc memory begin in buffers
934
        mov     ebx,.y
945
	mov	ebx,.y
935
        mul     ebx
946
	mul	ebx
936
        mov     ebx,.x1
947
	mov	ebx,.x1
937
        add     eax,ebx
948
	add	eax,ebx
938
        mov     ebx,eax
949
	mov	ebx,eax