Author Topic: little problem with , missing  (Read 2169 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1764
    • EditMasm
little problem with , missing
« on: August 25, 2020, 11:26:56 PM »
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

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: little problem with , missing
« Reply #1 on: August 26, 2020, 05:22:06 AM »
Error A2151: Missing operator in expression

Code: [Select]
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

  • Member
  • *****
  • Posts: 1764
    • EditMasm
Re: little problem with , missing
« Reply #2 on: August 27, 2020, 05:46:16 AM »
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

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: little problem with , missing
« Reply #3 on: August 27, 2020, 10:26:51 AM »
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

  • Member
  • *****
  • Posts: 1764
    • EditMasm
Re: little problem with , missing
« Reply #4 on: August 27, 2020, 04:36:54 PM »
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

  • Member
  • ****
  • Posts: 893
    • Uasm
Re: little problem with , missing
« Reply #5 on: August 27, 2020, 07:47:09 PM »
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

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: little problem with , missing
« Reply #6 on: August 27, 2020, 10:22:23 PM »
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

  • Member
  • *****
  • Posts: 1764
    • EditMasm
Re: little problem with , missing
« Reply #7 on: August 27, 2020, 10:44:27 PM »
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

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: little problem with , missing
« Reply #8 on: August 27, 2020, 11:14:45 PM »
So version 2.49 works? It's over a year old...