Mail Archives: djgpp/1998/05/31/14:02:21
At 10:47 5/29/1998 GMT, Fábio Diales da Rocha wrote:
> Does anyone know how to pass parameters to user define opcodes in inline
>djgpp asm?
>
> Ie, if I wanted to do something like:
> PADD %%mm0, _a64bitmemvar
>
> How would I do it? I know about using the ".byte <opcode>" directive to
>put the PADD itself but how do I pass the _a64bitmemvar?
You would have to look up somewhere the form of a memory reference.
www.intel.com could probably help.
However, if you have Binutils 2.8.1 or above, the assembler supports MMX
instructions, so you could probably do it directly. Note that I believe
there is currently a bug whereby it generates the wrong opcode for PADD. But
the port of 2.9 should soon be available.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -