Skip to content

Commit

Permalink
[TRACE] Fixed FF 25 opcode not decoding destination correctly in trace
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Aug 19, 2023
1 parent 9e7225b commit 4bd00b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emu/x64run_private.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4bd00b0

Please sign in to comment.