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