More often than not, infinite loops are created by programming errors and are quickly dealt with. In sympathy for this highly persecuted group of programs, a safe haven has been created on retro code. The two infinite loops below are highly optimized examples. In fact, the actual loops are only 1 byte long!
Z80 Infinite Loop
ld hl, HERE8080 Infinite Loop
HERE:jp (hl)
lxi h, HERECorewar Infinite Loop
HERE:pchl
jmp #0, <-5In Corewar, the infinite loop finds its niche destroying small mobile programs called imps!
If you know any infinite loops in need of shelter, please post them in the comments below.
