The MASM Forum

General => The Workshop => Topic started by: jj2007 on August 17, 2013, 04:15:44 AM

Title: MASM bugs
Post by: jj2007 on August 17, 2013, 04:15:44 AM
Five years ago we had a thread named List of known MASM bugs (http://www.masmforum.com/board/index.php?topic=10435.0), with somewhat unsatisfactory results. Now I found (in the context of a Soap Box thread ::)) this Masm bugs fixed in JWasm (http://www.japheth.de/JWasm/Manual.html#CHAPMASMBUGS) table. A must read :t

P.S.: "-" in the Fixed Masm Version column means "has never been fixed".
Title: Re: MASM bugs
Post by: Gunther on August 17, 2013, 05:54:04 AM
Jochen,

thank for this reminiscence. To read this list is very instructive.  :t

Gunther
Title: MASM bug with /Zi or /Zd option
Post by: jj2007 on November 11, 2013, 09:36:47 AM
This chokes with error A2006: undefined symbol : @@ in Masm 6.14 and 6.15 but only if either /Zd or /Zi are used in the commandline:

include \masm32\include\masm32rt.inc

.code
start:
      print "Testing the Zi option:"
      mov ebx, -3
@@:   mov ecx, 123
      test ecx, ecx
      je @F
      mov eax, reparg("Hello")
      inc ebx
      jne @B
@@:   inkey "bye"
      exit
end start


MASM 8+ and JWasm are OK.
Title: Re: MASM bugs
Post by: dedndave on November 11, 2013, 09:49:57 AM
did you try
@@:
      inkey "bye"
      exit


i know there have been problems expanding macros on the same line as a label
Title: Re: MASM bugs
Post by: jj2007 on November 11, 2013, 10:20:59 AM
Same behaviour, Dave.

The problems with expansion concern only macros which return something, which is not the case for inkey.
Title: Re: MASM bugs
Post by: hutch-- on November 11, 2013, 12:39:41 PM
 :biggrin:

Who said MASM has bugs, those of greater tolerance see it as a set of characteristics that you get used to.  :P
Title: Re: MASM bugs
Post by: Magnum on November 11, 2013, 02:04:29 PM
Quote from: hutch-- on November 11, 2013, 12:39:41 PM
:biggrin:

Who said MASM has bugs, those of greater tolerance see it as a set of characteristics that you get used to.  :P

Writing an assembler is probably not easy.

I feel sorry for perfectionists.

Andy
Title: Re: MASM bugs
Post by: dedndave on November 12, 2013, 04:33:53 AM
we can add the MASM32 favicon and some nifty code on the back, and i think we have our t-shirt...

(http://rlv.zcache.com/its_not_a_bug_its_a_feature_geek_nerd_gear_tshirt-r86e30a0e4f0a403899dd01ab15a74a51_8nhma_512.jpg)
Title: Re: MASM bugs
Post by: hutch-- on November 12, 2013, 09:58:25 AM
 :biggrin:

Yes, this is definitely the right idea.  :P
Title: Re: MASM bugs
Post by: Magnum on November 13, 2013, 05:37:35 AM
Cool, I will buy one when they are ready.

Andy
Title: Re: MASM bugs
Post by: Gunther on November 13, 2013, 06:05:16 AM
Dave,

nice idea, but unfortunately not new.  :lol:

Gunther
Title: Re: MASM bugs
Post by: dedndave on November 13, 2013, 06:05:36 AM
well - not fond of the color selection or font - but the message is good   :biggrin:

some kind of graphic would be decent
once you have the silkscreen(s) made, the cost is the same for the same color quantity

(http://preview.turbosquid.com/Preview/Content_2009_08_25__05_02_07/roach-lo-res.jpg57ef2246-5cc9-4aa9-ad38-f1a93087cb61Larger.jpg)

i like the way he is dragging a 3/4" wrench - lol
Title: Re: MASM bugs
Post by: Magnum on November 14, 2013, 01:13:46 AM
I don't understand the "low rez mesh" text ?

Are you referring to the shirt color - as in white is a bee-otch to keep clean ?

Looks kinda like a wood roach.

Andy
Title: Re: MASM bugs
Post by: dedndave on November 14, 2013, 04:17:31 AM
it's a low-res mesh image
i didn't make the cockroach - i googled and found one already made, and it had the text
Title: Re: MASM bugs
Post by: InfiniteLoop on September 12, 2020, 07:06:03 PM
Found a bug in VS2019 using Clang:

vpbroadcastd ymm0, eax

No error but it crashes.
Title: Re: MASM bugs
Post by: Caché GB on September 12, 2020, 09:12:23 PM
Hi InfiniteLoop

Try this



     local  ddVal:dword

            mov  ddVal, 12345
   vpbroadcastd  ymm0, ddVal

Title: Re: MASM bugs
Post by: InfiniteLoop on September 13, 2020, 06:54:05 AM
Isn't local just a macro for .data declarations?

It should be vpbroadcastd ymm0, xmm1
but vpbroadcastd ymm0, edx generates no error.