Subversion Repositories Kolibri OS

Rev

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

Rev 6769 Rev 8014
Line 109... Line 109...
109
ret
109
ret
Line 110... Line 110...
110
 
110
 
111
 
111
 
112
draw_dots:
112
draw_dots:
113
   mov	   esi,[points_translated_ptr]
113
   mov     esi,[points_translated_ptr]
114
   movzx   ecx,[points_count_var]
114
   mov     ecx,[points_count_var]
115
 .drw:
115
 .drw:
116
 @@:
116
 @@:
117
   lodsd
117
   lodsd
Line 484... Line 484...
484
	add	cx,18
484
        add     cx,18
485
	cmp	cx,(18*21*3)+1
485
        cmp     cx,(18*21*3)+1
486
	jle	.next
486
        jle     .next
Line 487... Line 487...
487
 
487
 
488
	mov	edi,[triangles_ptr]
488
        mov     edi,[triangles_ptr]
489
	mov	ax,4
489
        mov     eax,4
490
	mov	bx,4+4
490
        mov     ebx,4+4
491
	mov	[triangles_count_var],164*3   ;140
491
        mov     [triangles_count_var],160*3    ;164*3   ;140
492
 
492
 
493
	mov	cx,80*3  ;68
493
        mov     ecx,80*3  ;68
494
      @@:
494
      @@:
495
	stosw		      ;----
495
        stosd                 ;----
496
	mov	[edi],bx      ;    |
496
        mov     [edi],ebx      ;    |
497
	add	edi,2	      ;    |
497
        add     edi,4         ;    |
498
	inc	ax	      ;    |
498
        inc     eax            ;    |
499
	stosw		      ;    |repeat 4 times
499
        stosd                 ;    |repeat 4 times
500
 
500
 
501
	mov	[edi],bx      ;    |
501
        mov     [edi],ebx      ;    |
502
	inc	bx
502
        inc     ebx
503
	add	edi,2
503
        add     edi,4
504
	stosw		      ;    |
504
        stosd                 ;    |
505
	mov	[edi],bx      ;    |
505
        mov     [edi],ebx      ;    |
506
	add	edi,2	      ;----
506
        add     edi,4         ;----
Line 507... Line 507...
507
	loop	 @b
507
        loop     @b
508
 
508
 
Line 625... Line 625...
625
	add	[points_count_var],2
625
        add     [points_count_var],2
Line 626... Line 626...
626
 
626
 
Line 627... Line 627...
627
; init triangles list
627
; init triangles list
628
 
628
 
629
	mov	edi,[triangles_ptr]
629
        mov     edi,[triangles_ptr]
630
	mov	ax,5
630
        mov     eax,5
631
	mov	bx,5+5
631
        mov     ebx,5+5
632
	mov	[triangles_count_var],204
632
        mov     [triangles_count_var],200  ;204
633
 
633
 
634
	mov	cx,100
634
        mov     ecx,100
635
      @@:
635
      @@:
636
	stosw		      ;----
636
        stosd                 ;----
637
	mov	[edi],bx      ;    |
637
        mov     [edi],ebx      ;    |
638
	add	edi,2	      ;    |
638
        add     edi,4         ;    |
639
	inc	ax	      ;    |
639
        inc     eax            ;    |
640
	stosw		      ;    |repeat
640
        stosd                 ;    |repeat
641
 
641
 
642
	mov	[edi],bx      ;    |
642
        mov     [edi],ebx      ;    |
643
	inc	bx
643
        inc     ebx
644
	add	edi,2
644
        add     edi,4
645
	stosw		      ;    |
645
        stosd                 ;    |
646
	mov	[edi],bx      ;    |
646
        mov     [edi],ebx      ;    |
Line 647... Line 647...
647
	add	edi,2	      ;----
647
        add     edi,4         ;----
648
	loop	 @b
648
        loop     @b
649
 
649
 
650
	mov	ax,5
650
        mov     eax,5
651
	mov	bx,[points_count_var]
651
        mov     ebx,[points_count_var]
652
	sub	bx,2
652
        sub     ebx,2
653
	mov	dl,2
653
        mov     dl,2
654
    .nx:
654
    .nx:
655
	mov	cx,5
655
        mov     ecx,5
656
	add	[triangles_count_var],cx
656
        add     [triangles_count_var],ecx
657
    @@:
657
    @@:
658
	stosw
658
        stosd
659
	add	ax,5
659
        add     eax,5
660
	stosw
660
        stosd
Line 661... Line 661...
661
	mov	word[edi],bx
661
        mov     dword[edi],ebx
662
	add	edi,2
662
        add     edi,4
Line 663... Line 663...
663
	loop	@b
663
        loop    @b
664
 
664
 
665
	cmp	dl,1
665
        cmp     dl,1
666
	je	@f
666
        je      @f
667
 
667
 
668
	inc	bx
668
        inc     ebx
669
	jmp	.lab
669
        jmp     .lab
670
     @@:
670
     @@:
671
	dec	bx
671
        dec     ebx
672
     .lab:
672
     .lab:
673
	mov	cx,5
673
        mov     ecx,5
674
	add	[triangles_count_var],cx
674
        add     [triangles_count_var],ecx
675
     @@:
675
     @@:
676
	stosw
676
        stosd
Line 677... Line 677...
677
	add	ax,5
677
        add     eax,5
678
	stosw
678
        stosd
679
	mov	word[edi],bx
679
        mov     dword[edi],ebx
Line 680... Line 680...
680
	add	edi,2
680
        add     edi,4
681
	loop	@b
681
        loop    @b
682
 
682
 
683
	dec	dl
683
        dec     dl
684
	or	dl,dl
684
        or      dl,dl
685
	jnz	.nx
685
        jnz     .nx
686
 
686
 
687
	sub	ax,25
687
        sub     eax,25
688
	stosw
688
        stosd
689
	sub	ax,50
689
        sub     eax,50
690
	stosw
690
        stosd
691
	mov	word[edi],bx
691
        mov     dword[edi],ebx
692
	add	edi,2
692
        add     edi,4
693
 
693
 
Line 694... Line 694...
694
	stosw
694
        stosd
695
	add	ax,50
695
        add     eax,50
Line 696... Line 696...
696
	stosw
696
        stosd
697
	inc	bx
697
        inc     ebx
Line 698... Line 698...
698
	mov	word[edi],bx
698
        mov     dword[edi],ebx
-
 
699
        add     edi,4