aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-24 23:00:31 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-24 23:00:31 +0100
commit1fc88ae00940e04ee76cbdf13a5df429faf72451 (patch)
tree59692bd2354819ee8b7fea2253fcefacdf1ecce9 /test
parentbd7ef7a572f3faa58a550baca46a1b4f95e9b95d (diff)
Also do the BP dance if no spills occur
This is because arguments are annoyingly generated relative to BP, which fails completely if the stack frame is not set up nicely. TODO do stuff relative to SP so BP is just a general purpose register.
Diffstat (limited to 'test')
-rw-r--r--test/t2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/t2.c b/test/t2.c
index 11ce9b8..0f9432c 100644
--- a/test/t2.c
+++ b/test/t2.c
@@ -14,6 +14,7 @@ void main() {
mov b, @dir
hwi 1 // legs
}
+ holo_dec(dir);
dir = dir + 1;
if (dir == 4) dir = 0;
}