From: Toni Wilen Date: Mon, 13 Jul 2015 16:09:51 +0000 (+0300) Subject: Wait() return address hack. X-Git-Tag: 3200~136 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d4aa9162a773cb4251494fe92c11432c312692ed;p=francis%2Fwinuae.git Wait() return address hack. --- 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); }