News:

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

Expected a memory operand error.

Started by Emil_halim, November 05, 2010, 03:41:21 PM

Previous topic - Next topic

Emil_halim

hi all

what is wrong with this code


#macro MemCopySSE(src,dst):lab,finish;
   USE(esi, edi)
   lea (dst,edi);
   lea (src,esi);
lab:   
   movdqa([esi],xmm0);
   pxor( xmm1,xmm1);
   pcmpeqb(xmm0,xmm1);
   add (16,esi);
   pmovmskb(xmm1,eax);
   test(eax,eax);
   jnz (finish);
   movdqa(xmm0,[edi]);
   add(16,edi);
   jmp ( lab );
finish:
   ENDUSE;     
#endmacro



i got Expected a memory operand.
Near: << _076e_lab_ >>

any help please.

Sevag.K


you're using the indirect memory jump syntax.  to jump to a label directly, use

jmp lab;



Emil_halim