Example #1
0
 public override OpCodeOperandKind OpKind(EncoderTypes encoderTypes, int arg)
 {
     if (arg == 0)
     {
         return(OpCodeOperandKind.mm_reg);
     }
     if (arg == 1)
     {
         return(OpCodeOperandKind.mm_or_mem);
     }
     throw new ArgumentOutOfRangeException($"{arg}");
 }
Example #2
0
 public abstract OpCodeOperandKind OpKind(EncoderTypes encoderTypes, int arg);
Example #3
0
        public override OpCodeOperandKind OpKind(EncoderTypes encoderTypes, int arg)
        {
            var kind = OpKinds[arg];

            return((OpCodeOperandKind)encoderTypes.EvexOpHandlers[(int)kind].opCodeOperandKind.Value);
        }