News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

little problem with , missing

Started by TouEnMasm, August 25, 2020, 11:26:56 PM

Previous topic - Next topic

TouEnMasm

Hello,
:bgrin:
Quote
invoke lstrcat addr STinterface,pname
A "," is missing and don't generate an error and don't generate code.
Fa is a musical note to play with CL

jj2007

Error A2151: Missing operator in expression

include \masm32\include\masm32rt.inc

.data
STinterface db 1000 dup(?)
Hello db "Hello", 0
pname dd Hello
.code
start:
  invoke lstrcat addr STinterface, pname
  inkey offset STinterface
end start

TouEnMasm

I have this in 32 bits,windows10 release and debug version Windows ,not tested in console


Fa is a musical note to play with CL

jj2007

I don't know what that has to do with the Windows version, but maybe you should check if your UAsm version is a bit old.

TouEnMasm

Quote
UASM v2.41, Oct  3 2017, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
downloaded here,http://www.terraspace.co.uk/uasm.html
Is there more recent ?
Fa is a musical note to play with CL

johnsa

2.49 is the version on the site currently, but 2.50 is the most recent I just haven't had a chance to package it up. I suspect a lot of users have compiled it from Git Repo directly.
I am on holiday now so should have some time to rectify this and update the released version to 2.50

jj2007

Anyway, my short snippet above does produce the error correctly, so maybe @ToutEnMasm you should post the complete code here to demonstrate the error. Of course, you can strip off the parts that are not needed, but it should be complete enough to be assembled.

TouEnMasm

Hello,
Thanks to Johnsa for the link to the 2.49,Now I get:
Quote
invoke lstrcat addr STinterface,pname       ;miss a , line 202
implemente_Interface.inc(202) : Error A2151: Missing operator in expression
Fa is a musical note to play with CL

jj2007

So version 2.49 works? It's over a year old...