aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Decoders/OpCodeBImmCmp64.cs
blob: 2e674a54c3532f1300d062579c0ce93cc27e20e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using ChocolArm64.Instructions;

namespace ChocolArm64.Decoders
{
    class OpCodeBImmCmp64 : OpCodeBImm64
    {
        public int Rt { get; private set; }

        public OpCodeBImmCmp64(Inst inst, long position, int opCode) : base(inst, position, opCode)
        {
            Rt = opCode & 0x1f;

            Imm = position + DecoderHelper.DecodeImmS19_2(opCode);

            RegisterSize = (opCode >> 31) != 0
                ? State.RegisterSize.Int64
                : State.RegisterSize.Int32;
        }
    }
}