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 76... | Line 76... | ||
76 | mov edx,eax ; check only X triangle coordinate |
76 | mov edx,eax ; check only X triangle coordinate |
77 | or edx,ebx |
77 | or edx,ebx |
78 | or edx,ecx |
78 | or edx,ecx |
79 | test edx,80000000h |
79 | test edx,80000000h |
80 | jne .gt_loop2_end |
80 | jne .gt_loop2_end |
- | 81 | ||
- | 82 | mov dx,[size_x_var] |
|
- | 83 | dec dx |
|
81 | shr eax,16 |
84 | shr eax,16 |
82 | cmp ax,SIZE_X-1 |
85 | cmp ax,dx ;SIZE_X-1 |
83 | jg .gt_loop2_end |
86 | jg .gt_loop2_end |
84 | shr ebx,16 |
87 | shr ebx,16 |
85 | cmp bx,SIZE_X-1 |
88 | cmp bx,dx ;SIZE_X-1 |
86 | jg .gt_loop2_end |
89 | jg .gt_loop2_end |
87 | shr ecx,16 |
90 | shr ecx,16 |
88 | cmp cx,SIZE_X-1 |
91 | cmp cx,dx ;SIZE_X-1 |
89 | jg .gt_loop2_end |
92 | jg .gt_loop2_end |
Line 90... | Line 93... | ||
90 | 93 | ||
91 | 94 | ||
Line 441... | Line 444... | ||
441 | mov ebp,esp |
444 | mov ebp,esp |
Line 442... | Line 445... | ||
442 | 445 | ||
443 | mov ax,.y |
446 | mov ax,.y |
444 | or ax,ax |
447 | or ax,ax |
- | 448 | jl .gl_quit |
|
- | 449 | mov dx,[size_y_var] |
|
445 | jl .gl_quit |
450 | dec dx |
446 | cmp ax,SIZE_Y-1 |
451 | cmp ax,dx ;SIZE_Y-1 |
Line 447... | Line 452... | ||
447 | jg .gl_quit |
452 | jg .gl_quit |
448 | 453 | ||
449 | mov ax,.x1 |
454 | mov ax,.x1 |
Line 477... | Line 482... | ||
477 | ; @@: |
482 | ; @@: |
478 | ; cmp .x2,0 |
483 | ; cmp .x2,0 |
479 | ; jl .gl_quit |
484 | ; jl .gl_quit |
Line 480... | Line 485... | ||
480 | 485 | ||
- | 486 | movsx ecx,.y |
|
- | 487 | movzx eax,word[size_x_var] |
|
481 | movsx ecx,.y |
488 | lea eax,[eax*3] |
482 | mov eax,SIZE_X*3 |
489 | ; mov eax,SIZE_X*3 |
483 | mul ecx |
490 | mul ecx |
484 | movsx ebx,word .x1 |
491 | movsx ebx,word .x1 |
485 | lea ecx,[ebx*2+eax] |
492 | lea ecx,[ebx*2+eax] |
486 | add edi,ecx |
493 | add edi,ecx |