From abd1f4e58aa05d55ddb7397b3640ea07023ebbb2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Aug 2014 19:22:18 -0700 Subject: [PATCH] Disassemble bne/etc. using rs, rt order. The order makes more logical sense from game disassembly, and matches the assembler. Fixes #6632. --- Core/MIPS/MIPSDis.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/MIPS/MIPSDis.cpp b/Core/MIPS/MIPSDis.cpp index bcf30c5142..ee97243319 100644 --- a/Core/MIPS/MIPSDis.cpp +++ b/Core/MIPS/MIPSDis.cpp @@ -128,7 +128,7 @@ namespace MIPSDis off += imm + 4; const char *name = MIPSGetName(op); - sprintf(out, "%s\t%s, ->$%08x",name,RN(rs),off); + sprintf(out, "%s\t%s, ->$%08x", name, RN(rs), off); } void Dis_Syscall(MIPSOpcode op, char *out) @@ -163,11 +163,11 @@ namespace MIPSDis const char *name = MIPSGetName(op); int o = op>>26; if (o==4 && rs == rt)//beq - sprintf(out,"b\t->$%08x",off); + sprintf(out, "b\t->$%08x", off); else if (o==20 && rs == rt)//beql - sprintf(out,"bl\t->$%08x",off); + sprintf(out, "bl\t->$%08x", off); else - sprintf(out, "%s\t%s, %s, ->$%08x",name,RN(rt),RN(rs),off); + sprintf(out, "%s\t%s, %s, ->$%08x", name, RN(rs), RN(rt), off); } void Dis_IType(MIPSOpcode op, char *out)