Halt and catch fire: Difference between revisions

Content added Content deleted
Line 43: Line 43:


=={{header|68000 Assembly}}==
=={{header|68000 Assembly}}==
If interrupts are disabled, a jump instruction that jumps to itself will do just fine.
The 68000 can only read words or longs at even addresses. Attempting to do so at an odd address will crash the CPU.
<lang 68000devpac>jmp * ;many assemblers allow * or $ to represent the address of this line of code.</lang>
<lang 68000devpac>CrashBandicoot equ $100001
LEA CrashBandicoot,A0
MOVE.W (A0),D0</lang>


=={{header|Ada}}==
=={{header|Ada}}==