Literals/Integer: Difference between revisions

no edit summary
No edit summary
Line 37:
255000
</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 memory location
<lang 6502asm>;These are all equivalent:
LDA #$41
LDA #65
LDA #%01000001
LDA #'A'</lang>
 
=={{header|68000 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
<lang 68000devpac>;These are all equivalent:
MOVE.B #$41,D0
MOVE.B #65,D0
MOVE.B #%01000001,D0
MOVE.B #'A',D0</lang>
 
=={{header|AArch64 Assembly}}==
1,489

edits