Enforced immutability: Difference between revisions

Content added Content deleted
No edit summary
Line 6: Line 6:
=={{header|6502 Assembly}}==
=={{header|6502 Assembly}}==
Most assemblers allow you to define labels which can refer to constant values for clarity.
Most assemblers allow you to define labels which can refer to constant values for clarity.
<lang 6502asm>
<lang 6502asm>bit7 equ %10000000
bit7 equ %10000000
bit6 equ %01000000
bit6 equ %01000000


Line 15: Line 14:


The CPU isn't aware that these labels exist, however, as the assembler automatically replaces them with the assigned value.
The CPU isn't aware that these labels exist, however, as the assembler automatically replaces them with the assigned value.

=={{header|68000 Assembly}}==
=={{header|68000 Assembly}}==
Most assemblers allow you to define labels which can refer to constant values for clarity.
Most assemblers allow you to define labels which can refer to constant values for clarity.