From a4224020145d134365e5b3836b53915c0236719b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 18 May 2025 13:43:36 +1000 Subject: [PATCH] CPU: Fix bgez/blez disassembly with non-standard pattern --- src/core/cpu_disasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cpu_disasm.cpp b/src/core/cpu_disasm.cpp index 0c389c181..8ffa4628c 100644 --- a/src/core/cpu_disasm.cpp +++ b/src/core/cpu_disasm.cpp @@ -621,7 +621,7 @@ void CPU::DisassembleInstruction(SmallStringBase* dest, u32 pc, u32 bits) { const u8 rt = static_cast(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