|
-
Jun 18th, 2001, 05:56 PM
#1
Cos, Sin
Does any one have any "cos" or "sin" functions? Or any math functions that arent already in the assembly language?
-
Jun 23rd, 2001, 10:02 PM
#2
Lively Member
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
-
Jun 24th, 2001, 01:17 AM
#3
Mind telling me how to use them?
-
Jun 24th, 2001, 01:54 AM
#4
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|