From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and MMX Date: Sat, 15 Aug 1998 12:17:21 -0300 Organization: NBTel Internet Lines: 26 Message-ID: <35D5A681.4BF86F0A@unb.ca> References: <199808140613 DOT HAA10458 AT sable DOT ox DOT ac DOT uk> NNTP-Posting-Host: fctnts13c03.nbnet.nb.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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