diff options
| author | 2025-08-25 16:53:34 +0330 | |
|---|---|---|
| committer | 2025-08-25 16:53:34 +0330 | |
| commit | 8f73e9736317bd5d7951757357075504ea402d27 (patch) | |
| tree | b89acf08a72ab2d0195d033ce600134c78de663e /pu2/code.i2 | |
| parent | fixed stack overflow bug (diff) | |
cool stuff, right? multi-process support with permission levels
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 deleted file mode 100644 index b173469..0000000 --- a/pu2/code.i2 +++ /dev/null @@ -1,35 +0,0 @@ - -/* - - testing grounds for the ir2 assembler - i still don't know whether it's a compiler, an IR emitter, or an assembler - hmmm... - -*/ - -macro puts(2) { - @1 = 0; // write - @2 = /1/; // ptr - @3 = /2/; // size - system(); -} - -macro putchar(1) { - @1 = 0; // write - @2 = 10; // ptr - @3 = 1; // size - @10 = /1/; // value - system(); -} - -let count = 5; - -while (count) { - count--; - - puts(["hello"], [5]); - putchar([10]); -} - -exit(0); - |
