diff options
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 index 06d1c54..22ab74f 100644 --- a/pu2/code.i2 +++ b/pu2/code.i2 @@ -1,3 +1,5 @@ + + /* testing grounds for the ir2 assembler @@ -21,17 +23,14 @@ macro putchar(1) { system(); } -@10 = 0; +@90 = 5; -// if statement!! -if (@10) { - puts(["hi"], [2]); -} +while (@90) { + @90--; -putchar([10]); -puts([" hello world"], [15]); -putchar([10]); -putchar([10]); + puts(["hello"], [5]); + putchar([10]); +} exit(0); |
