News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Data types

Started by donkey, March 08, 2009, 05:53:35 AM

Previous topic - Next topic

donkey

Hi Jeremy,

Is there any equivalent to the data type XMMWORD in GoAsm ?

http://msdn.microsoft.com/en-us/library/cw0399sf.aspx

couldn't find it in the manual but thought it might have been added.

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

jorgon

Hi Edgar

Yes this is supported, but in GoAsm it has not been necessary to require a "data type" (such as "B", "W", "D" or "Q") to be specified by the programmer because the size of the data addressed by the processor is fixed and cannot be changed by the programmer. 

The size of the data addressed depends on:-
(a) the mnemonic, and
(b) the first operand.

For example:-
PUNPCKLBW MMX,[MyData]
PACKSSDW MMX,[MyData]
PACKSSDW XMM,[MyData]

As specified in the processor's specifications, the first always references a 32 bit area of memory, the second always references a 64 bit area of memory and the third always references a 128 bit area of memory.

Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)

donkey

Hi Jeremy,

Thanks, makes sense, I was more concerned about the ordering of data in memory when using 128 bit data, whether it is big or little endian.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

jorgon

I see.  No, GoAsm does not provide a facility for this, but you could declare the data using DQ twice in the correct order, or a DQ repeated by commas, or you could use a structure.
DT is the largest data declaration at 80 bits.


Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)