/programs/develop/libraries/TinyGL/asm_fork/zline.asm |
---|
6,7 → 6,6 |
mov ecx,[ebx+offs_zbup_y] |
imul ecx,[eax+offs_zbuf_xsize] |
add ecx,[ebx+offs_zbup_x] |
shl ecx,1 |
add ecx,[eax+offs_zbuf_zbuf] |
mov edx,[eax+offs_zbuf_linesize] |
imul edx,[ebx+offs_zbup_y] |
16,7 → 15,7 |
add edx,[eax+offs_zbuf_pbuf] |
mov edi,[ebx+offs_zbup_z] |
shr edi,ZB_POINT_Z_FRAC_BITS |
cmp di,word[ecx] |
cmp edi,[ecx] |
jl .end_f |
if TGL_FEATURE_RENDER_BITS eq 24 |
mov eax,[ebx+offs_zbup_r] |
28,7 → 27,7 |
else |
; *pp = RGB_TO_PIXEL(p->r, p->g, p->b); |
end if |
mov word[ecx],di |
mov [ecx],edi |
.end_f: |
ret |
endp |