From fd5bdaff40f93546009e1ec854fd26df01e78f22 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 30 Apr 2024 15:25:17 +0300 Subject: correct addr + Doesn't quite implement stack handling fully as of yet, but slowly getting there --- tests/simple_loop.qbt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/simple_loop.qbt (limited to 'tests/simple_loop.qbt') diff --git a/tests/simple_loop.qbt b/tests/simple_loop.qbt new file mode 100644 index 0000000..32e544f --- /dev/null +++ b/tests/simple_loop.qbt @@ -0,0 +1,13 @@ +main() +{ + i27 i = 0; + i27 max = 1000; + i27 sum = 0; + +top: + i27 sum = sum + i; + i27 i = i + 1; + i < max -> top; + &_putchar(sum) => (); + => (); +} -- cgit v1.3