mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-15 03:30:19 +00:00
29 lines
No EOL
852 B
C#
29 lines
No EOL
852 B
C#
namespace ARMeilleure.Decoders
|
|
{
|
|
class OpCodeBfm : OpCodeAlu
|
|
{
|
|
public long WMask { get; }
|
|
public long TMask { get; }
|
|
public int Pos { get; }
|
|
public int Shift { get; }
|
|
|
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode, bool inITBlock) => new OpCodeBfm(inst, address, opCode, inITBlock);
|
|
|
|
public OpCodeBfm(InstDescriptor inst, ulong address, int opCode, bool inITBlock) : base(inst, address, opCode, inITBlock)
|
|
{
|
|
var bm = DecoderHelper.DecodeBitMask(opCode, false);
|
|
|
|
if (bm.IsUndefined)
|
|
{
|
|
Instruction = InstDescriptor.Undefined;
|
|
|
|
return;
|
|
}
|
|
|
|
WMask = bm.WMask;
|
|
TMask = bm.TMask;
|
|
Pos = bm.Pos;
|
|
Shift = bm.Shift;
|
|
}
|
|
}
|
|
} |