flat assembler
Message board for the users of flat assembler.

Index > Main > float default data type

Author
Thread Post new topic Reply to topic
Hugh Aguilar



Joined: 15 Nov 2011
Posts: 62
Location: Arizona
Hugh Aguilar
Do the FPU instructions have a default data type? Hopefully it is QWORD because that is what I use the most. I have to explicitly use TWORD when one of those are used, but can I just let the assembler assume QWORD otherwise?

If I define a variable with DQ or DT, does FASM use this information when that variable is accessed in an FPU instruction later on? Or is FASM "typeless" in the sense that variables don't have any type information that the assembler uses?
Post 07 Dec 2013, 04:11
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17280
Location: In your JS exploiting you and your system
revolution
If you don't use the colon when defining labels then fasm will store and use the data type associated.
Code:
Label1 dq ? ;qword type is associated with Label1
Label2: dq ? ;No associated data type    
Post 07 Dec 2013, 04:42
View user's profile Send private message Visit poster's website Reply with quote
Hugh Aguilar



Joined: 15 Nov 2011
Posts: 62
Location: Arizona
Hugh Aguilar
revolution wrote:
If you don't use the colon when defining labels then fasm will store and use the data type associated.
Code:
Label1 dq ? ;qword type is associated with Label1
Label2: dq ? ;No associated data type    

Okay, cool --- thanks
Post 08 Dec 2013, 02:03
View user's profile Send private message Send e-mail 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.