From a62006b4c8658e60f59ac77082719bb3f892dd09 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 27 Jun 2024 15:26:18 +0200 Subject: [PATCH] Simplified test program --- examples/hello/hello.q | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/examples/hello/hello.q b/examples/hello/hello.q index afd5576..c006280 100644 --- a/examples/hello/hello.q +++ b/examples/hello/hello.q @@ -1,17 +1,6 @@ main() { - address := 0 - length := 0 - - address += 4194304 - address += 1 - - length = address - address - length += 50 - length -= 20 - length *= 10 - length /= 100 - length = (0 + 50 - 20) * 10 / 100 - length = 1 + address := 4194304 + 1 + length := (0 + 50 - 20) * 10 / 100 loop { print(address, length) @@ -19,7 +8,7 @@ main() { } print(address, length) { - write(length, address, length+1) + write(length-2, address, length) } write(fd, address, length) {