mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-22 18:15:11 +00:00
2f16491712
* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
32 lines
No EOL
855 B
C#
32 lines
No EOL
855 B
C#
using ARMeilleure.State;
|
|
|
|
namespace ARMeilleure.Decoders
|
|
{
|
|
class OpCodeCcmp : OpCodeAlu, IOpCodeCond
|
|
{
|
|
public int Nzcv { get; }
|
|
protected int RmImm;
|
|
|
|
public Condition Cond { get; }
|
|
|
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeCcmp(inst, address, opCode);
|
|
|
|
public OpCodeCcmp(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
|
{
|
|
int o3 = (opCode >> 4) & 1;
|
|
|
|
if (o3 != 0)
|
|
{
|
|
Instruction = InstDescriptor.Undefined;
|
|
|
|
return;
|
|
}
|
|
|
|
Nzcv = (opCode >> 0) & 0xf;
|
|
Cond = (Condition)((opCode >> 12) & 0xf);
|
|
RmImm = (opCode >> 16) & 0x1f;
|
|
|
|
Rd = RegisterAlias.Zr;
|
|
}
|
|
}
|
|
} |