flat assembler
Message board for the users of flat assembler.

Index > Main > what's wrong with fdiv and fmul?

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 22 Sep 2005, 12:45
hi! i just went to convert my ascii to float function from masm to fasm, but fasm stops on single fdiv says: "invalid operand", and if i comment it then stops on single fmul opcode:
Quote:
flat assembler version 1.64
C:\projects\fpu2\a2f.inc [130]:
fmul
error: invalid operand.

adding operands as "st1" do not solving problem...
???

_________________
UNICODE forever!
Post 22 Sep 2005, 12:45
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 22 Sep 2005, 12:49
Just like the Intel manual says, only popping operations like "faddp" or "fmulp" have the variant without any operands - "fmulp" does the same as "fmulp st1,st0". Some assembler use the "fmul" in the same meaning as "fmulp" here, but fasm follows the Intel manuals in aspect that "fmul" is always a non-popping instruction.
Post 22 Sep 2005, 12:49
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 22 Sep 2005, 12:55
thanks! now it works Smile
Post 22 Sep 2005, 12:55
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.