Literals/Integer: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 38: | Line 38: | ||
</pre> |
</pre> |
||
=={{header|6502 Assembly}}== |
=={{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 memory location |
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 memory location, rather than a constant number. |
||
<lang 6502asm>;These are all equivalent: |
<lang 6502asm>;These are all equivalent: |
||
LDA #$41 |
LDA #$41 |