aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Cpu/Decoder/AOpCodeAdr.cs
blob: 49f756e7217962d8368e31b754e18b9bab0e0f85 (plain)
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)
        {
            Rd = OpCode & 0x1f;

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