From d4aa9162a773cb4251494fe92c11432c312692ed Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 13 Jul 2015 19:09:51 +0300 Subject: [PATCH] Wait() return address hack. --- debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug.cpp b/debug.cpp index 6048d20a..1ff4afb5 100644 --- a/debug.cpp +++ b/debug.cpp @@ -3174,7 +3174,8 @@ static void print_task_info (uaecptr node, bool nonactive) uae_u32 sigwait = get_long_debug(node + 22); if (sigwait) console_out_f(_T(" Waiting signals: %08x\n"), sigwait); - uae_u32 sp = get_long_debug(node + 54) + 70; + int offset = kickstart_version >= 37 ? 74 : 70; + uae_u32 sp = get_long_debug(node + 54) + offset; uae_u32 pc = get_long_debug(sp); console_out_f(_T(" SP: %08x PC: %08x\n"), sp, pc); } -- 2.47.3