mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
implement msr and mrs for the x64 JIT
This commit is contained in:
@ -427,6 +427,10 @@ Info Decode(bool thumb, u32 num, u32 instr)
|
||||
res.Kind = ak_UNK;
|
||||
}
|
||||
}
|
||||
if (res.Kind == ak_MRS && !(instr & (1 << 22)))
|
||||
res.ReadFlags |= flag_N | flag_Z | flag_C | flag_V;
|
||||
if ((res.Kind == ak_MSR_IMM || res.Kind == ak_MSR_REG) && instr & (1 << 19))
|
||||
res.WriteFlags |= flag_N | flag_Z | flag_C | flag_V;
|
||||
|
||||
if (data & A_Read0)
|
||||
res.SrcRegs |= 1 << (instr & 0xF);
|
||||
|
Reference in New Issue
Block a user