| |
|
|
| CompileMarkSeparation
nProc lineOfPoints(long x,y,xx,yy){
long max=abs(x-xx),\
tmp=abs(y-yy)
case tmp>max : max=tmp
long data=dim(16+max*8)
linedda(x,y,xx,yy,procaddr(lineOfPoints.lineDDAProc),data)
mov eax,data
mov ebx,[eax]
inc ebx
mov [eax],ebx
imul ebx,8
add eax,ebx
mov [eax],xx
add eax,4
mov [eax],yy
return data
}
nProc lineOfPoints.lineDDAProc(long x,y,data){
push ebx
push ecx
mov eax,data
mov ebx,[eax]
inc ebx
mov [eax],ebx
imul ebx,8
add eax,ebx
mov [eax],x
add eax,4
mov [eax],y
pop ecx
pop a>
}
|
|
|
| |
|
|
|
Nico Madysa | supply a area back, the The Coordinates all spots the line between (x,y) and (xx,yy) contains. The area is How follows strukturiert:
Long on Offset 0: Number of drew spots. Long on Offset 4: not definiert. Longs on Offset 8/12: X-/Y-Koordinate the first Punktes, etc. The area is i. A. larger as absolutely necessary. |
|
|
| |
|
|