Implement thumb1_MOV_imm

This commit is contained in:
MerryMage 2016-07-08 21:16:40 +08:00
parent 34be20e4d6
commit 98f300144b
3 changed files with 16 additions and 2 deletions

View file

@ -130,6 +130,10 @@ public:
return Common::StringFromFormat("subs %s, %s, #%u", RegStr(d), RegStr(n), imm3);
}
std::string thumb1_MOV_imm(Reg d, Imm8 imm8) {
return Common::StringFromFormat("movs %s, #%u", RegStr(d), imm8);
}
std::string thumb1_AND_reg(Reg m, Reg d_n) {
return Common::StringFromFormat("ands %s, %s", RegStr(d_n), RegStr(m));
}