mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-28 22:07:49 +00:00
Implement FOREACH (#658)
This acts like `REPT` with a variable automatically incremented across a range of values Fixes #432
This commit is contained in:
9
test/asm/foreach.out
Normal file
9
test/asm/foreach.out
Normal 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
|
||||
Reference in New Issue
Block a user