From 4bd00b0f91b92861e1cc4a0bc43714e8d5e08194 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 19 Aug 2023 17:22:02 +0200 Subject: [PATCH] [TRACE] Fixed FF 25 opcode not decoding destination correctly in trace --- src/emu/x64run_private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c index 671034b65..ffddd73aa 100644 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -1103,7 +1103,7 @@ void PrintTrace(x64emu_t* emu, uintptr_t ip, int dynarec) printFunctionAddr(nextaddr, "=> "); } else if(peek==0xFF) { if(PK(1)==0x25) { - uintptr_t nextaddr = ip + 6 + PK32(2); + uintptr_t nextaddr = *(uintptr_t*)(ip + 6 + PK32(2)); if(!printFunctionAddr(nextaddr, "=> ")) printf_log(LOG_NONE, " => %p", (void*)nextaddr); } else if((PK(1)==0x14) && (PK(2)==0x25)) {