News:

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

Cant't assemble PADDQ

Started by Eddy, May 31, 2005, 10:03:31 AM

Previous topic - Next topic

Eddy

Following code gives me an "error A2008: syntax error : xmm"
I assume it's the PADDQ that is causing the error as it works with PADDD.
Do I need to change some of MASMs settings/directives to make this work?


.686
option casemap:none
.mmx
.xmm
.model flat, stdcall

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««


    include \masm32\include\windows.inc
    include \masm32\include\masm32.inc
    include \masm32\include\kernel32.inc
    include \masm32\macros\macros.asm

    includelib \masm32\lib\masm32.lib
    includelib \masm32\lib\kernel32.lib

    .code

start:

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

    paddq XMM2, XMM0
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

end start



paddq MM2, MM0
also does not work...


Kind regards
Eddy
Eddy
www.devotechs.com -- HIME : Huge Integer Math and Encryption library--

MichaelW

Hi Eddy,

I don't know a whole lot about this, but PADDQ is apparently an SSE2 instruction that MASM 6.14 does not recognize. I can assemble your code OK with MASM 6.15, available here:

http://spiff.tripnet.se/~iczelion/download.html

There is also a set of macros that are supposed to add SSE2 support to MASM 6.14 available here:

http://www.masmforum.com/simple/index.php?topic=973.0

But in my quick test I could not get either of the two versions of the include file to work (for your code, they may work fine for other code).
eschew obfuscation

Eddy

Michael,

I had read something on these forums about MASM 6.15. I checked my version. It said V8.2 so I thought I was okay...

I'll download MASM 6.15 from the link you posted.
Thanks !!

Kind regards
Eddy
Eddy
www.devotechs.com -- HIME : Huge Integer Math and Encryption library--

Eddy

Think I get it.. MASM32 8.2 is the complete package, while MASM 6.14/6.15 is the assembler..?   :U

Kind regards
Eddy

Eddy
www.devotechs.com -- HIME : Huge Integer Math and Encryption library--

Eddy

MASM 6.15 assembles my code above without a problem, Michael.
Thanks !!   :U

Kind regards
Eddy


Eddy
www.devotechs.com -- HIME : Huge Integer Math and Encryption library--

MRR

Thanks--this was useful for me as I was trying to compile the assembly version of zlib, a compression library:  http://www.zlib.net/.  The version of MASM that came with MSDN, 6.11, got A2008 assembly errors on the zlib source.