mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
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:
12
Externals/Bochs_disasm/PowerPCDisasm.cpp
vendored
12
Externals/Bochs_disasm/PowerPCDisasm.cpp
vendored
@ -280,11 +280,13 @@ namespace PPCDisasm
|
|||||||
|
|
||||||
static void ill(struct DisasmPara_PPC *dp,ppc_word in)
|
static void ill(struct DisasmPara_PPC *dp,ppc_word in)
|
||||||
{
|
{
|
||||||
// strcpy(dp->opcode,".word");
|
if (in == 0) {
|
||||||
// sprintf(dp->operands,"0x%08lx",(unsigned int)in);
|
strcpy(dp->opcode, "");
|
||||||
|
strcpy(dp->operands, "---");
|
||||||
strcpy(dp->opcode,"");
|
} else {
|
||||||
sprintf(dp->operands,"");
|
strcpy(dp->opcode, "( ill )");
|
||||||
|
sprintf(dp->operands, "%08x", in);
|
||||||
|
}
|
||||||
|
|
||||||
dp->flags |= PPCF_ILLEGAL;
|
dp->flags |= PPCF_ILLEGAL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user