S
sahxinyu
Unregistered / Unconfirmed
GUEST, unregistred user!
asm mov bx,mousex
asm shr bx,2
asm neg bx
asm sub frame,50;
asm mov es,bseg
asm xor di,di
asm mov y,0
y_loop:
asm mov px,bx
asm mov ax,y // py=(y-mousey)*(y-mousey);
asm sub ax,mousey
asm xor dx,dx
asm mul ax
asm mov py,ax
asm shl word ptr px,1
asm mov cx,320
x_loop:
asm add px,1
asm mov ax,px
asm add py,ax
asm mov si,py
asm shr si,4
asm add si,frame
asm and si,255
asm mov al,byte ptr sinus[si]
asm shr al,2
asm mov byte ptr es:[di],al
asm inc di
asm dec cx
asm jnz x_loop
asm inc y
asm cmp y,200
asm jne y_loop
asm shr bx,2
asm neg bx
asm sub frame,50;
asm mov es,bseg
asm xor di,di
asm mov y,0
y_loop:
asm mov px,bx
asm mov ax,y // py=(y-mousey)*(y-mousey);
asm sub ax,mousey
asm xor dx,dx
asm mul ax
asm mov py,ax
asm shl word ptr px,1
asm mov cx,320
x_loop:
asm add px,1
asm mov ax,px
asm add py,ax
asm mov si,py
asm shr si,4
asm add si,frame
asm and si,255
asm mov al,byte ptr sinus[si]
asm shr al,2
asm mov byte ptr es:[di],al
asm inc di
asm dec cx
asm jnz x_loop
asm inc y
asm cmp y,200
asm jne y_loop