Halt and catch fire: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6:
Upon executing this byte as code, the processor will halt. No interrupts can occur either. This does not occur on 65c02-based hardware such as the Apple II or Atari Lynx.
<lang 6502asm> db $02</lang>
 
=={{header|Z80 Assembly}}==
The processor is permanently halted. Strangely enough, this does not work on the Game Boy. Rather, both the <code>HALT</code> instruction <i>and the instruction after it</i> are skipped.
<lang z80>di
halt</lang>
1,489

edits