Jump to content

Halt and catch fire: Difference between revisions

m
Line 43:
 
=={{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}}==
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.