From 8d072d8dc0d22ffd716f53f40893644b8e748fc2 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Wed, 13 Aug 2025 19:33:41 +0330 Subject: arithmetics unit in emu --- pu2/code.i2 | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'pu2/code.i2') 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 -- cgit v1.2.3