summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-05-24 02:26:03 -0400
committerLioncash <mathew1800@gmail.com>2015-05-24 02:26:03 -0400
commita6e5fd1e27385bb68844584927d45ec32b99eb55 (patch)
tree8adac0a803d5a76e8cb96b7135a977e1c6544175 /Source
parent9ab9688606a4e9d367b0758caf3d3c1ff477e315 (diff)
parent88e1850231727ac3190182d95db62ef34aa28d3e (diff)
Merge pull request #2444 from lioncash/disasm
GekkoDisassembler: Fix disassembly of mtfsf's FM field.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Common/GekkoDisassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/GekkoDisassembler.cpp b/Source/Core/Common/GekkoDisassembler.cpp
index 7ba77a2ea1..ae6c82902e 100644
--- a/Source/Core/Common/GekkoDisassembler.cpp
+++ b/Source/Core/Common/GekkoDisassembler.cpp
@@ -2204,7 +2204,7 @@ u32* GekkoDisassembler::DoDisassembly(bool big_endian)
if ((in & 0x02010000) == 0)
{
m_opcode = StringFromFormat("mtfsf%s", rcsel[in & 1]);
- m_operands = StringFromFormat("0x%x,%u", (unsigned int)(in & 0x01fe) >> 17, (int)PPCGETB(in));
+ m_operands = StringFromFormat("0x%x,%u", (unsigned int)(in >> 17) & 0x01fe, (unsigned int)PPCGETB(in));
}
else
{