aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/Decoders/OpCodeLopImm32.cs
blob: cb48f3a61598f24657af21bb31f4c0ebeca2db1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Ryujinx.Graphics.Shader.Instructions;

namespace Ryujinx.Graphics.Shader.Decoders
{
    class OpCodeLopImm32 : OpCodeAluImm32, IOpCodeLop, IOpCodeImm
    {
        public LogicalOperation LogicalOp { get; }

        public bool InvertA { get; }
        public bool InvertB { get; }

        public OpCodeLopImm32(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
        {
            LogicalOp = (LogicalOperation)opCode.Extract(53, 2);

            InvertA = opCode.Extract(55);
            InvertB = opCode.Extract(56);

            Extended = opCode.Extract(57);
        }
    }
}