Pointers and references: Difference between revisions

m
Line 2:
=={{header|6502 Assembly}}==
===Pointers===
In <code>C</code>,most <code>8086 Assembly</code>, and <code>Z80 Assembly</code>languages, a number that is an operand in an instruction, such as <code>mov ax,3</code> or <code>int x = 3;</code>, is an <i>immediate number</i>, i.e. a constant that equals the value of that number. <code>6502 Assembly</code> is the opposite. A number <b>without</b> a # in front represents a memory address.
 
<lang 6502asm>LDA $19 ;load the value at memory address $19 into the accumulator
1,489

edits