flat assembler
Message board for the users of flat assembler.

Index > Main > Data definition directive for 16-bytes operands

Author
Thread Post new topic Reply to topic
Hunter



Joined: 07 Jun 2006
Posts: 41
Hunter
Does FASM support data definition directives for 16-bytes operands (for example ddq)?
Post 11 Oct 2006, 10:11
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
i think that it would be problem... fasm internally stores integers as 8byte values
Post 11 Oct 2006, 10:20
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Hunter



Joined: 07 Jun 2006
Posts: 41
Hunter
Tomasz, what do you think about it? Is it really big problem? This data definition directive would be very convenient Smile.
Post 13 Oct 2006, 14:45
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Hunter: can you give some example where you will use these numbers?
Post 13 Oct 2006, 15:01
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7724
Location: Kraków, Poland
Tomasz Grysztar
Look at the WIN64/MANDEL example, which uses the 16-byte packed data types. I don't know of any other appliance of such data sizes.
Post 13 Oct 2006, 15:32
View user's profile Send private message Visit poster's website Reply with quote
Hunter



Joined: 07 Jun 2006
Posts: 41
Hunter
Examples? SSE, SSE2, SSE3, SSSE3 and forthcoming SSE4.
Post 13 Oct 2006, 17:01
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
For my SSE use (my processor doesn't have later SSE extensions) I use:
Code:
data_definition1 rd 4
data_definition2 dd 1.0, 2.0, 3.0, 4.0

movups xmm0, dqword [data_definition1]
movups xmm1, dqword [data_definition2]    
Post 17 Oct 2006, 12:26
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-2020, Tomasz Grysztar.

Powered by rwasa.