Exemple #1
0
        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
            });
        }
Exemple #2
0
 public static IMOperation Cmnt(string text)
 {
     return(new IMOperation(IMInstruction.CMNT, IMOperand.Identifier(text)));
 }
Exemple #3
0
 public static IMOperation Labl(string labelName)
 {
     return(new IMOperation(IMInstruction.LABL, IMOperand.Identifier(labelName)));
 }
Exemple #4
0
 public static IMOperation JmpNZ(IMOperand operand, string labelName)
 {
     return(new IMOperation(IMInstruction.JMPNZ, operand, IMOperand.Identifier(labelName)));
 }
Exemple #5
0
 public static IMOperation JmpLE(IMOperand operand1, IMOperand operand2, string labelName)
 {
     return(new IMOperation(IMInstruction.JMPLE, operand1, operand2, IMOperand.Identifier(labelName)));
 }