diff options
| author | 2025-08-13 19:33:41 +0330 | |
|---|---|---|
| committer | 2025-08-13 19:33:41 +0330 | |
| commit | 8d072d8dc0d22ffd716f53f40893644b8e748fc2 (patch) | |
| tree | ca73a83f5ffdcea61199f74130257045856ccc6b /pu2/code.i2 | |
| parent | deleted binaries (diff) | |
arithmetics unit in emu
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 index 216cd54..14a065f 100644 --- a/pu2/code.i2 +++ b/pu2/code.i2 @@ -1,20 +1,11 @@ -macro setup_io() { +macro puts() { @1 = 0; // write - @2 = 10; // ptr - @3 = 1; // size -} - -macro putchar() { - @10 = /1/; + @2 = /1/; // ptr + @3 = /2/; // size system(); } -setup_io(); - -putchar(['h']); -putchar(['e']); -putchar(['l']); -putchar(['l']); -putchar(['o']); +puts(["hello world +"], [12]); exit(0);
\ No newline at end of file |
