Fix bug: Correct disassembly of thumb1_LSL_reg, thumb1_LSR_reg, thumb1_ASR_reg

This commit is contained in:
MerryMage 2016-07-08 17:27:21 +08:00
parent d0b48bfb59
commit 5b56fd12aa

View file

@ -118,15 +118,15 @@ public:
return Common::StringFromFormat("adds %s, %s, %s", RegStr(d), RegStr(n), RegStr(m)); return Common::StringFromFormat("adds %s, %s, %s", RegStr(d), RegStr(n), RegStr(m));
} }
std::string thumb1_LSL_reg(Reg d_n, Reg m) { std::string thumb1_LSL_reg(Reg m, Reg d_n) {
return Common::StringFromFormat("lsls %s, %s", RegStr(d_n), RegStr(m)); return Common::StringFromFormat("lsls %s, %s", RegStr(d_n), RegStr(m));
} }
std::string thumb1_LSR_reg(Reg d_n, Reg m) { std::string thumb1_LSR_reg(Reg m, Reg d_n) {
return Common::StringFromFormat("lsrs %s, %s", RegStr(d_n), RegStr(m)); return Common::StringFromFormat("lsrs %s, %s", RegStr(d_n), RegStr(m));
} }
std::string thumb1_ASR_reg(Reg d_n, Reg m) { std::string thumb1_ASR_reg(Reg m, Reg d_n) {
return Common::StringFromFormat("asrs %s, %s", RegStr(d_n), RegStr(m)); return Common::StringFromFormat("asrs %s, %s", RegStr(d_n), RegStr(m));
} }