W
W
Wasya UK2018-04-15 16:19:28
OpenGL
Wasya UK, 2018-04-15 16:19:28

How to write an equation in assembler?

I'm trying to get into the assembler, but I can't understand why I get a crooked scene as a result?

scene2 proc x, y, z:DWORD
  ;cos(sin(x-fi)*fi)
  fld x
  fsub fi
  fsin
  fld fi
  fmul
  fcos
  
  mov eax, z
  fstp dword ptr [eax]
  
  ret

scene2 endp

5ad351591138b829515687.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question