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); } }
public override void Encode(Encoder encoder, ref Instruction instr, int operand) => encoder.AddModRMRegister(ref instr, operand, regLo, regHi);