mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 14:51:04 +00:00
Fix mov sanitation
This commit is contained in:
parent
7b8fd8daad
commit
4daf99fa44
@ -12,9 +12,10 @@ bool DataProcessing::Decode()
|
|||||||
FieldDef<4>(&rd), FieldDef<5>(&imm5), FieldDef<3>(0), FieldDef<4>(&rm) }))
|
FieldDef<4>(&rd), FieldDef<5>(&imm5), FieldDef<3>(0), FieldDef<4>(&rm) }))
|
||||||
{
|
{
|
||||||
form = Form::Register;
|
form = Form::Register;
|
||||||
|
if (cond != Condition::AL) return false;
|
||||||
if (imm5 != 0) return false; // Shifts
|
if (imm5 != 0) return false; // Shifts
|
||||||
if (s != 0) return false; // Set flags
|
if (s != 0) return false; // Set flags
|
||||||
if (rd == Register::PC) return false; // Jump
|
if (rm == Register::PC) return false; // Jump
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ReadFields({ FieldDef<4>(&cond), FieldDef<3>(1), FieldDef<4>(&short_op), FieldDef<1>(&s), FieldDef<4>(&rn),
|
if (ReadFields({ FieldDef<4>(&cond), FieldDef<3>(1), FieldDef<4>(&short_op), FieldDef<1>(&s), FieldDef<4>(&rn),
|
||||||
|
Loading…
Reference in New Issue
Block a user