Assembly 8086 EQU directive
<p>I'm having trouble just making clear <strong>EQU</strong> directive in assembler (8086).</p>

<pre><code>abc EQU xyz
</code></pre>

<p>Does EQU literally swaps abc when found in code with xyz, whatever xyz represents, value etc?</p>

<p>i.e. Can i write?</p>

<pre><code>varA EQU [bp+4]

mov ax, varA
</code></pre>

<p>And one more question is EQU globally accessed, i.e. can I define EQU out of procedure, and in procedure to use it?</p>