From f4c9528b11a02481a3d418dd3a41304ad1583153 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 18 Dec 2012 22:56:04 -0800 Subject: ecx was getting clobbered before the relevant temp value was used in some cases during memory reads --- runtime.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'runtime.S') diff --git a/runtime.S b/runtime.S index 5ffa06c..b117b77 100644 --- a/runtime.S +++ b/runtime.S @@ -153,7 +153,12 @@ cart: inccycles: add $4, %rax cmp %rbp, %rax - jge handle_cycle_limit + jge do_limit + ret +do_limit: + push %rcx + call handle_cycle_limit + pop %rcx ret .global m68k_read_long_scratch1 -- cgit v1.2.3