Literals/Integer: Difference between revisions

Content added Content deleted
Line 46: Line 46:


=={{header|68000 Assembly}}==
=={{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
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 value.
<lang 68000devpac>;These are all equivalent:
<lang 68000devpac>;These are all equivalent:
MOVE.B #$41,D0
MOVE.B #$41,D0