From 4355c373970ccc3f690699f0d40448972f81e8bc Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sat, 13 Dec 2008 15:07:23 +0000 Subject: [PATCH] make "illegal instructions" visible in disassembly git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1520 8ced0084-cf51-0410-be5f-012b33b47a6e --- Externals/Bochs_disasm/PowerPCDisasm.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Externals/Bochs_disasm/PowerPCDisasm.cpp b/Externals/Bochs_disasm/PowerPCDisasm.cpp index 1490d30e93..c2c6ea1a8c 100644 --- a/Externals/Bochs_disasm/PowerPCDisasm.cpp +++ b/Externals/Bochs_disasm/PowerPCDisasm.cpp @@ -280,11 +280,13 @@ namespace PPCDisasm static void ill(struct DisasmPara_PPC *dp,ppc_word in) { - // strcpy(dp->opcode,".word"); - // sprintf(dp->operands,"0x%08lx",(unsigned int)in); - - strcpy(dp->opcode,""); - sprintf(dp->operands,""); + if (in == 0) { + strcpy(dp->opcode, ""); + strcpy(dp->operands, "---"); + } else { + strcpy(dp->opcode, "( ill )"); + sprintf(dp->operands, "%08x", in); + } dp->flags |= PPCF_ILLEGAL; }