diff options
| author | 2025-08-14 12:02:50 +0330 | |
|---|---|---|
| committer | 2025-08-14 12:02:50 +0330 | |
| commit | 9e7d03382cfcf6cc10fdb6b4a16b7056a9ce6a25 (patch) | |
| tree | c16e4085a2132590068cdc06bb3d5d0e74529e9d /pu2/code.i2 | |
| parent | arithmetics unit in emu (diff) | |
benchmark + operations + extra stufferinos
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 index 14a065f..2086d42 100644 --- a/pu2/code.i2 +++ b/pu2/code.i2 @@ -5,7 +5,22 @@ macro puts() { system(); } -puts(["hello world -"], [12]); +macro putchar() { + @1 = 0; // write + @2 = 10; // ptr + @3 = 1; // size + @10 = /1/; // value + system(); +} + +// putchar([10]); +// puts([" hello world"], [15]); +// putchar([10]); +// putchar([10]); + +@10 = 3; +@4 = 0; + +@10 != @4; exit(0);
\ No newline at end of file |
