aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Cpu/Decoder/AOpCodeAdr.cs
blob: 3396281f4539963a0e96389f9d296e096f372dcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using ChocolArm64.Instruction;

namespace ChocolArm64.Decoder
{
    class AOpCodeAdr : AOpCode
    {
        public int  Rd  { get; private set; }
        public long Imm { get; private set; }

         public AOpCodeAdr(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode)
        {
            Rd = OpCode & 0x1f;

            Imm  = ADecoderHelper.DecodeImmS19_2(OpCode);
            Imm |= ((long)OpCode >> 29) & 3;
        }
    }
}