News:

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

ERROR while assembling improved TESTBED

Started by frktons, September 04, 2010, 12:42:51 PM

Previous topic - Next topic

frktons

Hi all.

I'm trying to insert a proc, inside the testbed, to format number of elapsed
cycles with thousand separator for readability purpose.

In a preliminary test to see if the new instructions assemble correctly I get
an:

Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Assembling: C:\masm32\examples\clearbuftest\ClearBufferNew4.asm
C:\masm32\examples\clearbuftest\ClearBufferNew4.asm(232) : error A2070:invalid i
nstruction operands
MacroLoop(12): teration 1: Macro Called From
  C:\masm32\examples\clearbuftest\ClearBufferNew4.asm(232): Main Line Code
C:\masm32\examples\clearbuftest\ClearBufferNew4.asm(232) : error A2070:invalid i
nstruction operands
MacroLoop(12): teration 2: Macro Called From
  C:\masm32\examples\clearbuftest\ClearBufferNew4.asm(232): Main Line Code
_
Assembly Error


and the line 232 is where the ENDM alone stays.

Not being an Assembly Wizard, it could take me days to figure what is wrong.

Could anybody check the attached source and tell me where the error is?

Thanks

Frank
Mind is like a parachute. You know what to do in order to use it :-)

clive

Look at line 68, or generate a listing file with -Fl
It could be a random act of randomness. Those happen a lot as well.

frktons

Quote from: clive on September 04, 2010, 01:04:42 PM
Look at line 68, or generate a listing file with -Fl

The line 68 says:

      mov Number, sstr$(eax)


and according to the macro help, usage of sstr$ is:


     mov lpResult, sstr$(Integer)


So can't I use a register for Integer? Have I to mov it to an Integer variable?


Mind is like a parachute. You know what to do in order to use it :-)

frktons

WOOOOPSSSS !!!!
It returns a pointer, not a string.  :red

Solved
Mind is like a parachute. You know what to do in order to use it :-)