The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: kypck on April 22, 2012, 06:55:14 PM

Title: SSE2 in masm32 v11.0
Post by: kypck on April 22, 2012, 06:55:14 PM
Hello, i try to use SSE2 in masm32, but it doesn't work. For example, this code:

.686   
.xmm
.model flat, stdcall

.data
m dd 4.5

.code
CVTSS2SD xmm(0), m
movss m, xmm(0)
..............................


give me this error: "error A2008: syntax error: xmm"

How to fix it??
Title: Re: SSE2 in masm32 v11.0
Post by: jj2007 on April 22, 2012, 07:36:20 PM
Syntax is xmm0, not xmm(0).

Welcome to the forum :thumbu
Title: Re: SSE2 in masm32 v11.0
Post by: kypck on April 22, 2012, 08:03:00 PM
Thx :)

When i write xmm(0) it say: "undefined symbol xmm0".
It works right only with XMM0 or xmm(0)

Title: Re: SSE2 in masm32 v11.0
Post by: jj2007 on April 22, 2012, 08:25:54 PM
Early assembler versions are a bit picky re case of XMM. Try JWasm.
Title: Re: SSE2 in masm32 v11.0
Post by: kypck on April 22, 2012, 08:35:47 PM
Problem solved by updating ml.exe to 6.15 and it's works good :)
Thx for your answers
Title: Re: SSE2 in masm32 v11.0
Post by: hutch-- on April 23, 2012, 12:48:58 AM
Its worth the effort to get the latest version of ML.EXE from Microsoft. The download is very large but you get the latest version of all of the Microsoft tools with it, CL, ML, LINK etc ....