diff options
| author | 2025-08-11 11:34:18 +0330 | |
|---|---|---|
| committer | 2025-08-11 11:34:18 +0330 | |
| commit | 2fc20ad0b11e60ecfacc653024f2b582acad6e86 (patch) | |
| tree | d7e3f793f32928e40a18c56d00875a5b8e74dc62 /pu2/code.i2 | |
| parent | vscode theme extension (diff) | |
ir2 initial release!
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 new file mode 100644 index 0000000..772fd85 --- /dev/null +++ b/pu2/code.i2 @@ -0,0 +1,15 @@ +macro putchar() { + @1 = 0; // write + @2 = 10; // ptr + @3 = 1; // size + @10 = /1/; // value + system(); // interrupt (@0 = 2; halt;) +} + +putchar(['h']); +putchar(['e']); +putchar(['l']); +putchar(['l']); +putchar(['o']); + +exit(0);
\ No newline at end of file |
