The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: shankle on November 01, 2018, 07:00:13 AM

Title: Compiler did not catch
Post by: shankle on November 01, 2018, 07:00:13 AM
          10-31-2018

    Running GoAsm 64-bit.
    Swh12  dd  0
    mov rcx,[Swh12]
   
    The compiler did not catch this
    Swh12 should be defined
    Swh12  dq  0
   
    Thought you might want to know   
   
Title: Re: Compiler did not catch
Post by: Yuri on November 02, 2018, 12:50:46 AM
That is explained in the manual: Why GoAsm does not type or parameter check (http://www.godevtool.com/GoasmHelp/GoAsm.htm#notype).
Title: Re: Compiler did not catch
Post by: shankle on November 02, 2018, 01:37:33 AM
Thank you Yuri for replying.
I stand corrected.
Will in the future have to be more careful about sizes of
items I use. It is sure hard to find your own errors like
the one I made. But now I will be on the lookout for
this kind of error.
Title: Re: Compiler did not catch
Post by: Yuri on November 02, 2018, 04:48:00 PM
I use prefixes to remind myself of variables' sizes. wMyVar, dwMyVar, qwMyVar — word, double word and quad word respectively.