make "illegal instructions" visible in disassembly

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1520 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-12-13 15:07:23 +00:00
parent 82cd659638
commit 4355c37397
1 changed files with 7 additions and 5 deletions

View File

@ -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;
}