News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

dup?

Started by HSE, November 21, 2021, 11:02:00 AM

Previous topic - Next topic

HSE

Hi Biterider!

Is working this line in your development version: DefineVariable  xName, CHR, 32 dup (0)


Thanks, HSE.
Equations in Assembly: SmplMath

Biterider

Hello HSE
I have an issue here with the spacing between "dup" and "(".
Write it this way

DefineVariable  xName, CHR, 32 dup(0)

Biterider

Biterider

Hi HSE
To fix the issue replace lines 1180-1190 form objects.inc with:

          $$sz4 textequ <$Lower($$sz3)>                 ;;Convert to lowercase
          ??Pos1 = @InStr(1, %$$sz4, < dup>)
          if ??Pos1 gt 0
            if @InStr(1, %$$sz4, <{>) gt 0
              $$sz1 $$sz2 @CatStr(@SubStr(%$$sz3, 1, ??Pos1), < dup({})>)
            else
              $$sz1 $$sz2 @CatStr(@SubStr(%$$sz3, 1, ??Pos1), < dup(?)>)
            endif
          else
            $$sz1 $$sz2 ?
          endif


That should make it.

Biterider

HSE

Hi Biterider!!

Look like that work  :thumbsup:

Now I can see other problem:Error A2153: Initializer must be a string or single item
Still I don't know where that came from.

Nothing of this happen with a more stable version (stable version + some additions).

Thanks, HSE.
Equations in Assembly: SmplMath

Biterider

Hi HSE
QuoteStill I don't know where that came from.
Without the source, there is not much I can do to find the problem  :sad:

Maybe revert the change and eliminate the space between "dup" and "(" and check if the error message is gone.

Biterider

HSE

Hi Biterider!

UASM still is making bad error reports. AsmC show problem in a second  :biggrin:

Nothing related with dup  :thumbsup:.

There is a compatibility problem with union added in DEF_COMBOBOX structure.

Thanks, HSE.
Equations in Assembly: SmplMath