CPU: Fix bgez/blez disassembly with non-standard pattern

This commit is contained in:
Stenzek 2025-05-18 13:43:36 +10:00
parent c7ed3239b7
commit a422402014
No known key found for this signature in database

View File

@ -621,7 +621,7 @@ void CPU::DisassembleInstruction(SmallStringBase* dest, u32 pc, u32 bits)
{
const u8 rt = static_cast<u8>(inst.i.rt.GetValue());
const bool bgez = ConvertToBoolUnchecked(rt & u8(1));
const bool link = ConvertToBoolUnchecked((rt >> 4) & u8(1));
const bool link = (rt & u8(0x1E)) == u8(0x10);
if (link)
FormatInstruction(dest, inst, pc, bgez ? "bgezal $rs, $rel" : "bltzal $rs, $rel");
else