The MASM Forum

Projects => ObjAsm => Topic started by: HSE on November 21, 2021, 11:02:00 AM

Title: dup?
Post by: HSE on November 21, 2021, 11:02:00 AM
Hi Biterider!

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


Thanks, HSE.
Title: Re: dup?
Post by: Biterider on November 21, 2021, 05:19:24 PM
Hello HSE
I have an issue here with the spacing between "dup" and "(".
Write it this way

DefineVariable  xName, CHR, 32 dup(0)

Biterider
Title: Re: dup?
Post by: Biterider on November 21, 2021, 05:35:07 PM
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
Title: Re: dup?
Post by: HSE on November 22, 2021, 04:59:22 AM
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.
Title: Re: dup?
Post by: Biterider on November 22, 2021, 07:06:07 AM
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
Title: Re: dup?
Post by: HSE on November 22, 2021, 11:26:34 AM
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.