Implement thumb1_TST_reg

This commit is contained in:
MerryMage 2016-07-10 08:35:58 +08:00
parent 8145b33882
commit 6536ad9618
3 changed files with 13 additions and 2 deletions

View file

@ -178,6 +178,10 @@ public:
return Common::StringFromFormat("rors %s, %s", RegStr(d_n), RegStr(m));
}
std::string thumb1_TST_reg(Reg m, Reg n) {
return Common::StringFromFormat("tst %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));