Implement thumb1_ORR_reg

This commit is contained in:
MerryMage 2016-07-10 09:06:38 +08:00
parent 3fe46d2c6f
commit 98a64a92b1
8 changed files with 32 additions and 2 deletions

View file

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