Example #1
0
 /// <summary>
 /// Creates a new MOV (Move) instruction.
 /// </summary>
 /// <param name="destination">A register.</param>
 /// <param name="source">A register or memory operand.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Mov(Register destination, EffectiveAddress source)
 {
     return(X86Opcode.Mov.CreateInstruction(new RegisterOperand(destination), source));
 }
Example #2
0
 public static X86Instruction Mov(Register destination, ulong source)
 {
     return(X86Opcode.Mov.CreateInstruction(new RegisterOperand(destination), new Immediate((long)source, DataSize.Bit64)));
 }
Example #3
0
 /// <summary>
 /// Creates a new MOV (Move) instruction.
 /// </summary>
 /// <param name="destination">A register or memory operand.</param>
 /// <param name="source">A register.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Mov(Register destination, Register source)
 {
     return(X86Opcode.Mov.CreateInstruction(new RegisterOperand(destination), new RegisterOperand(source)));
 }
Example #4
0
 /// <summary>
 /// Creates a new MOV (Move) instruction.
 /// </summary>
 /// <param name="destination">A register or memory operand.</param>
 /// <param name="source">A register.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Mov(EffectiveAddress destination, Register source)
 {
     return(X86Opcode.Mov.CreateInstruction(destination, new RegisterOperand(source)));
 }
 /// <summary>
 /// Creates a new BTC (Bit Test and Complement) instruction.
 /// </summary>
 /// <param name="value">A register or memory operand.</param>
 /// <param name="bitindex">A register.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Btc(EffectiveAddress value, Register bitindex)
 {
     return(X86Opcode.Btc.CreateInstruction(value, new RegisterOperand(bitindex)));
 }
 public static X86Instruction Btc(Register value, sbyte bitindex)
 {
     return(X86Opcode.Btc.CreateInstruction(new RegisterOperand(value), new Immediate(bitindex, DataSize.Bit8)));
 }
 /// <summary>
 /// Creates a new BTC (Bit Test and Complement) instruction.
 /// </summary>
 /// <param name="value">A register or memory operand.</param>
 /// <param name="bitindex">A register.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Btc(Register value, Register bitindex)
 {
     return(X86Opcode.Btc.CreateInstruction(new RegisterOperand(value), new RegisterOperand(bitindex)));
 }
 /// <summary>
 /// Creates a new CMP (Compare) instruction.
 /// </summary>
 /// <param name="left">A register.</param>
 /// <param name="right">A register or memory operand.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Cmp(Register left, EffectiveAddress right)
 {
     return(X86Opcode.Cmp.CreateInstruction(new RegisterOperand(left), right));
 }
 /// <summary>
 /// Creates a new CMP (Compare) instruction.
 /// </summary>
 /// <param name="left">A register or memory operand.</param>
 /// <param name="right">A register.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Cmp(EffectiveAddress left, Register right)
 {
     return(X86Opcode.Cmp.CreateInstruction(left, new RegisterOperand(right)));
 }
 /// <summary>
 /// Creates a new CMP (Compare) instruction.
 /// </summary>
 /// <param name="left">A register or memory operand.</param>
 /// <param name="right">A register.</param>
 /// <returns>The created instruction.</returns>
 public static X86Instruction Cmp(Register left, Register right)
 {
     return(X86Opcode.Cmp.CreateInstruction(new RegisterOperand(left), new RegisterOperand(right)));
 }
 public static X86Instruction Cmp(Register left, uint right)
 {
     return(X86Opcode.Cmp.CreateInstruction(new RegisterOperand(left), new Immediate(right, DataSize.Bit32)));
 }