Literals/Integer: Difference between revisions

m
Line 38:
</pre>
=={{header|6502 Assembly}}==
Conventions vary between assemblers, but typically a $ represents hexadecimal and a % represents binary. The absence of either of those symbols means decimal. Single or double quotes represent an ASCII value. Keep in mind that without a # in front, any quantity is interpreted as a dereference operation at the memory location equal to the supplied number, rather than a constant numbervalue.
<lang 6502asm>;These are all equivalent:
LDA #$41
1,489

edits