diff options
| author | 2025-08-12 20:27:34 +0330 | |
|---|---|---|
| committer | 2025-08-12 20:27:34 +0330 | |
| commit | 15914727d83a6f46ad724e126179713d935e5e6f (patch) | |
| tree | 2f601872b7575e4f3c0ca8c366fb2a1e1ea1b4fb /pu2/code.i2 | |
| parent | ir2 initial release! (diff) | |
ir2 prototype! includes strings and DATA segment and other stuffs :3
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 index 772fd85..216cd54 100644 --- a/pu2/code.i2 +++ b/pu2/code.i2 @@ -1,11 +1,16 @@ -macro putchar() { +macro setup_io() { @1 = 0; // write @2 = 10; // ptr @3 = 1; // size - @10 = /1/; // value - system(); // interrupt (@0 = 2; halt;) } +macro putchar() { + @10 = /1/; + system(); +} + +setup_io(); + putchar(['h']); putchar(['e']); putchar(['l']); |
