Why is it necessary to use '$' sign in AT & T assembly?
<p>I am new to assembly language. I recently stepped into something miserable.
I created a sample assembly program as follows:</p>

<p>head.h</p>

<pre><code>#define _Length_ 0x0A
</code></pre>

<p>main.S</p>

<pre><code>movw $_LENGTH_, %ax
movw _LENGTH_, %ax
</code></pre>

<p>Now what is the difference between the two MOV statements?
What will be the value of ax?</p>

<p>I am using Ubuntu and GAS assembler(AT &amp; T syntax).</p>

<p>Thanks in advance</p>