2022-02-10 20:32:15 +00:00
|
|
|
|
namespace ARMeilleure.Decoders
|
|
|
|
|
{
|
|
|
|
|
class OpCodeT16AluImm8 : OpCodeT16, IOpCode32AluImm
|
|
|
|
|
{
|
|
|
|
|
public int Rd { get; }
|
|
|
|
|
public int Rn { get; }
|
|
|
|
|
|
2022-02-14 21:06:24 +00:00
|
|
|
|
public bool? SetFlags => null;
|
2022-02-10 20:32:15 +00:00
|
|
|
|
|
|
|
|
|
public int Immediate { get; }
|
|
|
|
|
|
|
|
|
|
public bool IsRotated { get; }
|
|
|
|
|
|
2022-02-14 21:06:24 +00:00
|
|
|
|
public static new OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeT16AluImm8(inst, address, opCode);
|
2022-02-10 20:32:15 +00:00
|
|
|
|
|
2022-02-14 21:06:24 +00:00
|
|
|
|
public OpCodeT16AluImm8(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
2022-02-10 20:32:15 +00:00
|
|
|
|
{
|
|
|
|
|
Rd = (opCode >> 8) & 0x7;
|
|
|
|
|
Rn = (opCode >> 8) & 0x7;
|
|
|
|
|
Immediate = (opCode >> 0) & 0xff;
|
|
|
|
|
IsRotated = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-14 21:06:24 +00:00
|
|
|
|
}
|