Implement FOREACH (#658)

This acts like `REPT` with a variable automatically
incremented across a range of values

Fixes #432
This commit is contained in:
Rangi
2020-12-29 15:30:42 -05:00
committed by GitHub
parent 3690546795
commit 6874f694e5
8 changed files with 239 additions and 14 deletions

9
test/asm/foreach.out Normal file
View File

@@ -0,0 +1,9 @@
0 1 2 3 4 5 6 7 8 9 -> 10
1 2 3 4 5 -> 6
10 9 8 7 6 5 4 3 2 1 0 -> -1
5 10 15 20 -> 25
3 6 9 12 15 18 21 24 27 -> 30
0
1
2
3