2018-02-05 00:08:20 +01:00
|
|
|
using ChocolArm64.Instruction;
|
|
|
|
|
|
|
|
namespace ChocolArm64.Decoder
|
|
|
|
{
|
|
|
|
class AOpCodeAdr : AOpCode
|
|
|
|
{
|
|
|
|
public int Rd { get; private set; }
|
|
|
|
public long Imm { get; private set; }
|
|
|
|
|
2018-02-10 18:20:46 +01:00
|
|
|
public AOpCodeAdr(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode)
|
2018-02-05 00:08:20 +01:00
|
|
|
{
|
|
|
|
Rd = OpCode & 0x1f;
|
|
|
|
|
|
|
|
Imm = ADecoderHelper.DecodeImmS19_2(OpCode);
|
|
|
|
Imm |= ((long)OpCode >> 29) & 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|