1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00

ppu disasm: Improve ORI and ORIS disassembly

This commit is contained in:
Eladash 2019-07-29 17:51:19 +03:00 committed by Ivan
parent 8886414013
commit 829047ecdb

View File

@ -1030,13 +1030,14 @@ void PPUDisAsm::RLWNM(ppu_opcode_t op)
void PPUDisAsm::ORI(ppu_opcode_t op)
{
if (op.rs == 0 && op.ra == 0 && op.uimm16 == 0) return Write("nop");
DisAsm_R2_IMM("ori", op.rs, op.ra, op.uimm16);
if (op.uimm16 == 0) return DisAsm_R2("mr", op.ra, op.rs);
DisAsm_R2_IMM("ori", op.ra, op.rs, op.uimm16);
}
void PPUDisAsm::ORIS(ppu_opcode_t op)
{
if (op.rs == 0 && op.ra == 0 && op.uimm16 == 0) return Write("nop");
DisAsm_R2_IMM("oris", op.rs, op.ra, op.uimm16);
DisAsm_R2_IMM("oris", op.ra, op.rs, op.uimm16);
}
void PPUDisAsm::XORI(ppu_opcode_t op)