Results 1 to 4 of 4

Thread: Cos, Sin

  1. #1
    ChimpFace9000
    Guest

    Post Cos, Sin

    Does any one have any "cos" or "sin" functions? Or any math functions that arent already in the assembly language?

  2. #2
    Lively Member devmax's Avatar
    Join Date
    Mar 2001
    Posts
    67

    yes

    yes, there are some floating point function in assembly, like "fcos" and "fsin" and a lot of stuff...
    All what you dream is codable - DevMaX

  3. #3
    ChimpFace9000
    Guest
    Mind telling me how to use them?

  4. #4
    Junior Member
    Join Date
    Jun 2000
    Posts
    28
    in masm32, for example (dunno if the "qword ptr"s are needed)

    Code:
    .data
    theta dq 1.2345
    sin dq ?
    cos dq ?
    
    .code
    fld qword ptr theta ;floating point load
    fsincos             ;i think that sine is in st(0)
    fstp qword ptr sin  ;store and pop sin
    fstp qword ptr cos  ;store and pop cos
    there's a heap of other stuff, the documentation for a86 has just about all the opcodes and floating point opcodes (I'm not sure about asin or acos though)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width