Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fld dword ptr [Xangle]      //Load Xangle in ST(0)
  2. fsincos                     //ST(0) = Sin(Xangle) and ST(1) = Cos(Xangle)
  3.  
  4. fmul dword ptr [wobbleSize]  //push wobbleSize on the stack, ST(0) = wobbleSize, ST(1) = Sin, ST(2) = Cos
  5. fiadd dword ptr[x]          //ST(0) = ST(0)+ x
  6. fistp dword ptr[imXi]       //imXi = rounded integer of ST(0) and pop the stack
  7.  
  8. fmul dword ptr [wobbleSize]
  9. fiadd dword ptr[y]          //ST(0) = ST(0)+ y
  10. fistp dword ptr[imYi]       //imXi = rounded integer of ST(0) and pop the stack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement