public static IMOperation Call(string functionName, IMOperand result, List <IMOperand> paramValues) { var allOperands = new List <IMOperand>() { IMOperand.Identifier(functionName), result }; allOperands.AddRange(paramValues); return(new IMOperation() { Instruction = IMInstruction.CALL, Operands = allOperands }); }
public static IMOperation Cmnt(string text) { return(new IMOperation(IMInstruction.CMNT, IMOperand.Identifier(text))); }
public static IMOperation Labl(string labelName) { return(new IMOperation(IMInstruction.LABL, IMOperand.Identifier(labelName))); }
public static IMOperation JmpNZ(IMOperand operand, string labelName) { return(new IMOperation(IMInstruction.JMPNZ, operand, IMOperand.Identifier(labelName))); }
public static IMOperation JmpLE(IMOperand operand1, IMOperand operand2, string labelName) { return(new IMOperation(IMInstruction.JMPLE, operand1, operand2, IMOperand.Identifier(labelName))); }