Курсовая работа: Графика на языке Assembler
mov ax, bx ;
imul Z ;
neg ax ;
add ax, cx ;
sar ax, 9
mov cx, X
mov X, ax
mov ax, ANY ;
CALL FIND_SIN ;
mov ax, bx ;
imul cx ;
mov cx, ax ;
mov ax, ANY ;ZNEW = X*SIN(ANY) + Z*COS(ANY)
CALL FIND_COS ;
mov ax, bx ;
imul Z ;
add ax, cx ;
sar ax, 9
mov Z, ax
pop dx
pop bx
pop ax
pop cx
ret
ENDP ROTY
ROTZ PROC ;Поворот точки вокруг оси Z
push cx
push ax
push bx