2022-02-11 11:10:41 +00:00
|
|
|
namespace ARMeilleure.Decoders
|
|
|
|
{
|
|
|
|
class OpCodeT16SpRel : OpCodeT16, IOpCode32AluImm
|
|
|
|
{
|
|
|
|
public int Rd { get; }
|
|
|
|
public int Rn => 13;
|
|
|
|
|
|
|
|
public bool SetFlags => false;
|
|
|
|
|
|
|
|
public int Immediate { get; }
|
|
|
|
|
|
|
|
public bool IsRotated => false;
|
|
|
|
|
|
|
|
public static new OpCode Create(InstDescriptor inst, ulong address, int opCode, bool inITBlock) => new OpCodeT16SpRel(inst, address, opCode, inITBlock);
|
|
|
|
|
|
|
|
public OpCodeT16SpRel(InstDescriptor inst, ulong address, int opCode, bool inITBlock) : base(inst, address, opCode, inITBlock)
|
|
|
|
{
|
|
|
|
Rd = (opCode >> 8) & 0x7;
|
2022-02-13 19:40:21 +00:00
|
|
|
Immediate = ((opCode >> 0) & 0xff) << 2;
|
2022-02-11 11:10:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|