summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-29 23:07:23 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-29 23:07:23 -0800
commitdc3c3342e7f66dbf48071734a886ee1645f6f77a (patch)
tree8b817e53d5a5c67eff19742e579843659adc5dc8
parent5610f4e0179509ceca3fbf5e376bf212321605ff (diff)
Fix crash when printing error message about modified return address
-rw-r--r--runtime.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime.S b/runtime.S
index 838d6cc..5debd57 100644
--- a/runtime.S
+++ b/runtime.S
@@ -398,6 +398,7 @@ m68k_modified_ret_addr:
lea ret_addr_msg(%rip), %rdi
mov %rcx, %rsi
mov 8(%rsp), %rdx
+ xor %rax, %rax
call printf
mov $1, %rdi
call exit