Implement thumb1_SBC_reg

This commit is contained in:
MerryMage 2016-07-09 08:27:41 +08:00
parent 1953e44532
commit 207cb74dc9
3 changed files with 19 additions and 2 deletions

View file

@ -170,6 +170,10 @@ public:
return Common::StringFromFormat("adcs %s, %s", RegStr(d_n), RegStr(m));
}
std::string thumb1_SBC_reg(Reg m, Reg d_n) {
return Common::StringFromFormat("sbcs %s, %s", RegStr(d_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));