Pointers and references: Difference between revisions

Content added Content deleted
Line 17: Line 17:
mov es, ax</lang>
mov es, ax</lang>


"equ" directives are flexible in that they can be intended as constants or as memory addresses. In this case, the "equ" directives involving "tempByte" and "tempWord" are used as memory addresses.
<code>equ</code> directives are flexible in that they can be intended as constants or as memory addresses. In this case, the <code>equ</code> directives involving <code>tempByte</code> and <code>tempWord</code> are used as memory addresses.


We can load to or from memory with the 8086 in a few different ways. In the example below, the value in a memory address is loaded directly from RAM to a register, or vice versa. Assume the code below takes place immediately after the setup above:
We can load to or from memory with the 8086 in a few different ways. In the example below, the value in a memory address is loaded directly from RAM to a register, or vice versa. Assume the code below takes place immediately after the setup above: