Disassembler: fix disassembly of some twi instructions
This commit is contained in:
parent
9f2d4ee53e
commit
9c4407fb80
|
@ -356,16 +356,18 @@ void GekkoDisassembler::trapi(u32 in, unsigned char dmode)
|
|||
{
|
||||
const char* cnd = trap_condition[PPCGETD(in)];
|
||||
|
||||
|
||||
m_flags |= dmode;
|
||||
if (cnd != nullptr)
|
||||
{
|
||||
m_flags |= dmode;
|
||||
m_opcode = StringFromFormat("t%c%s", dmode ? 'd' : 'w', cnd);
|
||||
m_operands = imm(in, 0, 2, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
ill(in);
|
||||
m_opcode = StringFromFormat("t%ci", dmode ? 'd' : 'w');
|
||||
m_operands = StringFromFormat("%d, ", PPCGETD(in));
|
||||
}
|
||||
m_operands += imm(in, 0, 2, false);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue