##Redcode
All 94
Edit 2: This is another way to do it. SPL 0
splits to two threads, where the first one continues and the second one spawns at the same instruction, thus creating infinite amounts of threads, while executing the code following it. When a thread hits DAT
, it is killed. The famous dwarf:
org start
start spl 0 ; Split infinitely
add.ab #4 , 2 ; Add 4 to the B-field of the dat
mov.i 1 , @1 ; Copy the dat to the location pointed by it's B-field
dat #0 , #0
end
All this is because of Ilmari Karonen's self terminating program. So, in Redcode looping always requires some kind of jumping. Because of that, I decided to create a program which copies itself completely, and jumps to the start of the new program after that, thus replicating itself infinitely.