diff options
| author | 2025-08-23 14:06:35 +0330 | |
|---|---|---|
| committer | 2025-08-23 14:06:35 +0330 | |
| commit | 4bccfb47a63461e53925faebca7132e262ebd9da (patch) | |
| tree | 5c4340ec8f2efa304cfef306235f8c1f181f7a22 /pu2/code.i2 | |
| parent | if statements are now supported! (diff) | |
while loops!
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); |
