From 1fc88ae00940e04ee76cbdf13a5df429faf72451 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 24 Jan 2018 23:00:31 +0100 Subject: 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. --- test/t2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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; } -- cgit v1.2.3-70-g09d2