Mail Archives: djgpp/1998/08/15/13:15:46
George Foot wrote:
> #define MMX_SOME_OP "\t.byte 1,2,3,4,5 ; MMX_SOME_OP \n"
>
> for some MMX operation, then:
>
> asm (
> " movl $5, %eax \n"
> " movl $2, %ebx \n"
> MMX_SOME_OP
> " movl %eax, %ebx \n"
> );
If you need the op-code to take parameters, you can do it like this:
#define MMX_SOME_OP(one,two) ".byte something " #one ", " #two ";"
Although, you would have to find out the right byte values for your parameters.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -