public static IMOperation Create(IMInstruction instruction, List <IMOperand> operands) { return(new IMOperation() { Instruction = instruction, Operands = operands }); }
public IMOperation(IMInstruction instruction, IMOperand operand1, IMOperand operand2, IMOperand operand3) { Assert.True(instruction.NumOperands == 3, "Instruction " + instruction.Name + " expected " + instruction.NumOperands + " operands, but 3 given!"); Instruction = instruction; Operands = new List <IMOperand> { operand1, operand2, operand3 }; }
private IMOperation(IMInstruction instruction, IMOperand operand1, IMOperand operand2) { Assert.True(instruction.NumOperands == 2, "Instruction " + instruction.Name + " expected " + instruction.NumOperands + " operands, but 2 given!"); Instruction = instruction; Operands = new List <IMOperand> { operand1, operand2 }; }
public RelationalOperator(string figure, IMInstruction setInstruction) { Figure = figure; _setInstruction = setInstruction; }
public BooleanOperator(string figure, IMInstruction instruction, int precedence) { _instruction = instruction; Figure = figure; Precedence = precedence; }
public static IMOperation BinaryOperator(IMInstruction instruction, IMOperand target, IMOperand operand1, IMOperand operand2) { return(new IMOperation(instruction, target, operand1, operand2)); }
private IMOperation(IMInstruction instruction) { Assert.True(instruction.NumOperands == 0, "Instruction " + instruction.Name + " expected " + instruction.NumOperands + " operands, but none given!"); Instruction = instruction; Operands = new List <IMOperand>(0); }