2018-02-05 00:08:20 +01:00
|
|
|
using ChocolArm64.Instruction;
|
2018-04-06 22:22:26 +02:00
|
|
|
using ChocolArm64.State;
|
2018-02-05 00:08:20 +01:00
|
|
|
|
|
|
|
namespace ChocolArm64.Decoder
|
|
|
|
{
|
|
|
|
class AOpCodeBImmCmp : AOpCodeBImm
|
|
|
|
{
|
|
|
|
public int Rt { get; private set; }
|
|
|
|
|
2018-02-10 18:20:46 +01:00
|
|
|
public AOpCodeBImmCmp(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode)
|
2018-02-05 00:08:20 +01:00
|
|
|
{
|
|
|
|
Rt = OpCode & 0x1f;
|
|
|
|
|
|
|
|
Imm = Position + ADecoderHelper.DecodeImmS19_2(OpCode);
|
2018-04-06 22:22:26 +02:00
|
|
|
|
|
|
|
RegisterSize = (OpCode >> 31) != 0
|
|
|
|
? ARegisterSize.Int64
|
|
|
|
: ARegisterSize.Int32;
|
2018-02-05 00:08:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|