Fix mov sanitation

This commit is contained in:
Dani Messerman 2015-05-01 00:31:43 +03:00
parent 7b8fd8daad
commit 4daf99fa44

View File

@ -12,9 +12,10 @@ bool DataProcessing::Decode()
FieldDef<4>(&rd), FieldDef<5>(&imm5), FieldDef<3>(0), FieldDef<4>(&rm) }))
{
form = Form::Register;
if (cond != Condition::AL) return false;
if (imm5 != 0) return false; // Shifts
if (s != 0) return false; // Set flags
if (rd == Register::PC) return false; // Jump
if (rm == Register::PC) return false; // Jump
return true;
}
if (ReadFields({ FieldDef<4>(&cond), FieldDef<3>(1), FieldDef<4>(&short_op), FieldDef<1>(&s), FieldDef<4>(&rn),