flat assembler
Message board for the users of flat assembler.

Index > Main > ERROR Assembling x64 instruction with FASM.DLL

Author
Thread Post new topic Reply to topic
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 25 Mar 2013, 10:15
Hi all,

I want to assemble a single x64 instruction with FASM.DLL. I use the DEMO program shipped with FASM.DLL

If I pass something like:

"use64 mov rax, 1122334455667788h"

It assembles correctly. But if I pass:

"use64 not rax"

It says "ERROR". Am I doing something wrong?

Thanks!
Post 25 Mar 2013, 10:15
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1178
Location: Unknown
HaHaAnonymous 25 Mar 2013, 16:49
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 21:15; edited 1 time in total
Post 25 Mar 2013, 16:49
View user's profile Send private message Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 26 Mar 2013, 09:55
Thanks a lot! That worked! Smile
Post 26 Mar 2013, 09:55
View user's profile Send private message Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc 26 Mar 2013, 14:33
I'm glad to know the original problem was resolved, but may be the author (of fasm) could comment on this undocumented feature allowing to put instructions or assembler directives on the same line with use16/32/64 directive?

_________________
Faith is a superposition of knowledge and fallacy
Post 26 Mar 2013, 14:33
View user's profile Send private message Reply with quote
Bargest



Joined: 09 Feb 2012
Posts: 79
Location: Russia
Bargest 26 Mar 2013, 15:09
Quote:
his undocumented feature allowing to put instructions or assembler directives on the same line with use16/32/64 directive

I think it is just undocumented bug.Smile
Just because the original post says that not all instructions can be put on the same line with these directives.
Post 26 Mar 2013, 15:09
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 26 Mar 2013, 16:59
It appears to be an ancient bug that went unnoticed for years just because nobody tried this combination. Smile It will be fixed in the next release.
Post 26 Mar 2013, 16:59
View user's profile Send private message Visit poster's website Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc 26 Mar 2013, 17:18
Tomasz Grysztar
I have a little list with some more ancient bugs, I think, but those mostly require a comprehensive discussion. Thus the following is just to make the next release a little bit more valuable. Smile
Code:
a equ ''
struc x {}
a x    

_________________
Faith is a superposition of knowledge and fallacy
Post 26 Mar 2013, 17:18
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 26 Mar 2013, 17:26
This certainly cannot be a MORE ancient bug. The STRUC directive was introduced in 1.05, while the bug with use16/use32 allowing another instruction in the same line was there from the very beginning. Wink

[EDIT]I made some tests and it appears that this bug with STRUC was introduced some time around 1.65-1.66 versions. So it is a way younger one, though quite old still. Wink[/EDIT]
Post 26 Mar 2013, 17:26
View user's profile Send private message Visit poster's website Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc 26 Mar 2013, 17:46
Tomasz Grysztar
I meant more bugs, not more ancient. Smile

_________________
Faith is a superposition of knowledge and fallacy
Post 26 Mar 2013, 17:46
View user's profile Send private message 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.