Pointers and references: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 21: | Line 21: | ||
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: |
||
<lang asm>mov ax,0FFFFh ;see note 1 |
<lang asm>mov ax,0FFFFh ;see note 1 |
||
mov word ptr [ds:tempWord],ax ;store hexadecimal value FFFF into tempWord |
mov word ptr [ds:tempWord],ax ;store hexadecimal value FFFF into tempWord |
||