Subversion Repositories Kolibri OS

Rev

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

Rev 1776 Rev 6619
Line 95... Line 95...
95
       or      edx,ebx	       ; if any *one* of them is negative a sign flag is raised
95
       or      edx,ebx	       ; if any *one* of them is negative a sign flag is raised
96
       or      edx,ecx
96
       or      edx,ecx
97
       test    edx,80000000h   ; Check only X
97
       test    edx,80000000h   ; Check only X
98
       jne     .loop23_done
98
       jne     .loop23_done
Line -... Line 99...
-
 
99
 
99
 
100
       mov     dx,[size_x_var]
100
       cmp     .x1,SIZE_X    ; {
101
       cmp     .x1,dx  ;SIZE_X    ; {
101
       jg      .loop23_done
102
       jg      .loop23_done
102
       cmp     .x2,SIZE_X     ; This can be optimized with effort
103
       cmp     .x2,dx  ;SIZE_X     ; This can be optimized with effort
103
       jg      .loop23_done
104
       jg      .loop23_done
104
       cmp     .x3,SIZE_X
105
       cmp     .x3,dx  ;SIZE_X
Line 105... Line 106...
105
       jg      .loop23_done    ; {
106
       jg      .loop23_done    ; {
106
 
107
 
Line 460... Line 461...
460
	mov	ebp,esp
461
	mov	ebp,esp
Line 461... Line 462...
461
 
462
 
462
	mov	ecx,.y
463
	mov	ecx,.y
463
	or	ecx,ecx
464
	or	ecx,ecx
-
 
465
	jl	.bl_end
464
	jl	.bl_end
466
	movzx	edx,word[size_y_var]
465
	cmp	ecx,SIZE_Y
467
	cmp	ecx,edx  ;SIZE_Y
Line 466... Line 468...
466
	jge	.bl_end
468
	jge	.bl_end
467
 
469
 
468
	cmp	eax,ebx
470
	cmp	eax,ebx
Line 495... Line 497...
495
	movq	.ex2,mm2
497
	movq	.ex2,mm2
496
end if
498
end if
497
  .bl_ok:
499
  .bl_ok:
498
	push	eax
500
	push	eax
499
	push	ebx	      ;store x1, x2
501
	push	ebx	      ;store x1, x2
-
 
502
	movzx	eax,word[size_x_var]
-
 
503
	lea	eax,[eax*3]
Line 500... Line 504...
500
 
504
 
501
	mov	eax,SIZE_X*3
505
     ;   mov     eax,SIZE_X*3
502
	mov	ebx,.y
506
	mov	ebx,.y
503
	mul	ebx
507
	mul	ebx
504
	mov	ecx,.x1
508
	mov	ecx,.x1
505
	lea	ecx,[ecx*3]
509
	lea	ecx,[ecx*3]