Implement thumb1_MOV_reg

This commit is contained in:
MerryMage
2016-07-10 13:10:06 +08:00
parent 8920ce79b9
commit f0f14fa5e8
3 changed files with 20 additions and 2 deletions

View File

@@ -217,6 +217,11 @@ public:
return Common::StringFromFormat("cmp %s, %s", RegStr(n), RegStr(m));
}
std::string thumb1_MOV_reg(bool d_hi, Reg m, Reg d_lo) {
Reg d = d_hi ? (d_lo + 8) : d_lo;
return Common::StringFromFormat("mov %s, %s", RegStr(d), RegStr(m));
}
std::string thumb1_UDF() {
return Common::StringFromFormat("udf");
}