Author Topic: AT&T vs. Intel asm syntax  (Read 17044 times)

nobody

  • Guest
AT&T vs. Intel asm syntax
« on: May 30, 2007, 03:16:42 AM »
Hello :
    Could somebody tell me how can convert following assembly directives writing in AT&T syntax to Intel syntax so that I can assemble it by nasm.

//****************************************************
   .align 16;
   x264_mmx_32 : .fill 4,2,32
//****************************************************

I googled some infomation :
result, size and value ?are absolute expressions.
This emits repeat copies of size bytes.
The contents of each repeat bytes is taken from an 8-byte number.
The highest order 4 bytes are zero.
The lowest order 4 bytes are value rendered in the byte-order of
an integer on the computer as is assembling for.
Each size bytes in a repetition is taken from the lowest order size bytes
of this number.

So, I write :
//****************************************************
    align 16
    x264 dw 32,32,32,32
//****************************************************

Am I right ?  Thanks.

nobody

  • Guest
Re: AT&T vs. Intel asm syntax
« Reply #1 on: May 30, 2007, 03:26:22 PM »
Yes.