Hello all,
I'm new to NASM, and very new to MacOS, please excuse what is probably a very newbe question.
I'm trying to port some Linux code over to Mac OS X (10.6.3).
nasm -v reports:
"NASM version 0.98.40 (Apple Computer, Inc. build 11) compiled on Oct 1 2009"
There's a snippet of code below, the problem is that every line that includes "xmmword" generates a "error: comma or end of line expected" error. I've googled a fair amount and tried changing "xmmword" to "xmmword ptr" or to "oword ptr" but I get the same errors. The most successfull change was to change "xmmword" to "qword", which I think got me further, but I get a bunch of "mismatch in operand sizes" errors, which are probably correct.
I'd appreciate any help. Thanks,
John.
code snippet follows.
movdqu xmm1,xmmword [ecx+edi*8] ; L = 2 F64 from L1
mulpd xmm1,xmm5 ; L *= R0
movdqu xmmword [esi+edi*8],xmm1 ; X1 = 2 F64 from L
sub edi,2 ; try decrement bnd by 2
jnc F64_MUL10_F64_F64_loop ; if bnd>=0 goto loop
add edi,2 ; else restore bnd...
jmp F64_MUL10_F64_F64_scalar ; ...and finish with scalar routine