summaryrefslogtreecommitdiff
path: root/zruntime.S
diff options
context:
space:
mode:
Diffstat (limited to 'zruntime.S')
-rw-r--r--zruntime.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/zruntime.S b/zruntime.S
index d6250fb..6dc353d 100644
--- a/zruntime.S
+++ b/zruntime.S
@@ -247,8 +247,12 @@ z80_io_write:
.global z80_retrans_stub
z80_retrans_stub:
+ pop %r14
call z80_save_context
+ /* adjust for mov and call instructions */
+ sub $10, %r14
mov %r13d, %edi
+ mov %r14, %rdx
push %rsi
call z80_retranslate_inst
pop %rsi