diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2018-10-07 17:21:41 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2018-10-07 17:27:02 +0100 |
| commit | 29c271d0eb4161b296d552dbbb6185fd84008da2 (patch) | |
| tree | c189feafe08dcf2bed6c7af6ea13a371749c6e5c /Source/Core/Common | |
| parent | daed09f7f04555a0955ce51881d24ed40b93db05 (diff) | |
GekkoDisassembler: fix disassembly of mtfsf
This fixes https://dolp.in/i11411.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/GekkoDisassembler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/GekkoDisassembler.cpp b/Source/Core/Common/GekkoDisassembler.cpp index 7571ffff7c..ae8fa57030 100644 --- a/Source/Core/Common/GekkoDisassembler.cpp +++ b/Source/Core/Common/GekkoDisassembler.cpp @@ -2242,8 +2242,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 >> 17) & 0x01fe, - (unsigned int)PPCGETB(in)); + m_operands = StringFromFormat("0x%x,%u", (in >> 17) & 0xff, regnames[PPCGETB(in)]); } else { |
