add double loop example program

This commit is contained in:
Crispy 2023-12-16 13:44:09 +01:00
parent f07a256fe6
commit d1a8792b18
2 changed files with 23 additions and 0 deletions

View file

@ -1,2 +1,4 @@
This program prints the input and exits when it has read everything.
@00000 11\
\!=?1/

21
programs/double_loop.worm Normal file
View file

@ -0,0 +1,21 @@
This program alternates between two loops, running each one 8 times each.
@00000v
v00000<
8
8
+
=
+ /2 \
8 =
8 +
+ +
+ 8
= 8
> 1/
4
3
\=++88/