diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-30 15:25:17 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-30 15:25:17 +0300 |
| commit | fd5bdaff40f93546009e1ec854fd26df01e78f22 (patch) | |
| tree | 2750eff7430b62d790292df238595a22e3f02616 /tests/simple_loop.qbt | |
| parent | cb71bb6ad44d5e6ea4d4af4896c23088957cbdb3 (diff) | |
| download | qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.tar.gz qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.zip | |
correct addr
+ Doesn't quite implement stack handling fully as of yet,
but slowly getting there
Diffstat (limited to 'tests/simple_loop.qbt')
| -rw-r--r-- | tests/simple_loop.qbt | 13 |
1 files changed, 13 insertions, 0 deletions
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) => (); + => (); +} |
