Пример #1
0
 public override void Encode(Encoder encoder, ref Instruction instr, int operand)
 {
     if (encoder.Bitness != 64 && instr.GetOpKind(operand) == OpKind.Register && instr.GetOpRegister(operand) == regLo + 8)
     {
         encoder.EncoderFlags |= EncoderFlags.PF0;
         encoder.AddModRMRegister(ref instr, operand, regLo + 8, regLo + 8);
     }
     else
     {
         encoder.AddModRMRegister(ref instr, operand, regLo, regHi);
     }
 }
Пример #2
0
 public override void Encode(Encoder encoder, ref Instruction instr, int operand) =>
 encoder.AddModRMRegister(ref instr, operand, regLo, regHi);