Implement thumb1_CMN_reg

This commit is contained in:
MerryMage 2016-07-10 08:55:56 +08:00
parent 641dbf8eb4
commit 3fe46d2c6f
3 changed files with 15 additions and 2 deletions

View file

@ -191,6 +191,10 @@ public:
return Common::StringFromFormat("cmp %s, %s", RegStr(n), RegStr(m));
}
std::string thumb1_CMN_reg(Reg m, Reg n) {
return Common::StringFromFormat("cmn %s, %s", RegStr(n), RegStr(m));
}
std::string thumb1_ADD_reg_t2(bool d_n_hi, Reg m, Reg d_n_lo) {
Reg d_n = d_n_hi ? (d_n_lo + 8) : d_n_lo;
return Common::StringFromFormat("add %s, %s", RegStr(d_n), RegStr(m));