flat assembler
Message board for the users of flat assembler.

Index > Main > FASM and math functions

Author
Thread Post new topic Reply to topic
Kristian_



Joined: 13 Nov 2004
Posts: 38
Kristian_ 07 Dec 2004, 17:19
Hello!
All math operators I know is: add, sub and dis. Does FASM has math operators like cos, sqr, etc.. Or do I need to crate them by myself? Thank you!
Post 07 Dec 2004, 17:19
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 07 Dec 2004, 19:21
I think you REALLY SHOULD learn some assembly!

...but I'm willing to help you on this:
x86 has ADD, ADC, SUB, SBB, INC, DEC, AAA, AAD, AAM, AAS, DAA, DAS in
its set. It also has some more complex instructions like XCGH, NEG, ADD
and MUL, IMUL, DIV, IDIV. (XADD beginning from 486)
There are exotics like XLAT and others user rarely.
So much for the integer part.
Floating point unit has A LOT OF math operations and YES FSIN, FCOS, FSQRT
are part of them. I won't list them here, because of the length of the list.
Post 07 Dec 2004, 19:21
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.