Halt and catch fire: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) No edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
<lang z80>di |
<lang z80>di |
||
halt</lang> |
halt</lang> |
||
{{omit from|Julia}} |
Revision as of 20:15, 12 September 2021
![Task](http://static.miraheze.org/rosettacodewiki/thumb/b/ba/Rcode-button-task-crushed.png/64px-Rcode-button-task-crushed.png)
You are encouraged to solve this task according to the task description, using any language you may know.
- Task
Create a program that crashes as soon as possible, with as few lines of code as possible. Be smart and don't damage your computer, ok?
- References
6502 Assembly
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>
Z80 Assembly
The processor is permanently halted. Strangely enough, this does not work on the Game Boy. Rather, both the HALT
instruction and the instruction after it are skipped.
<lang z80>di
halt</lang>