Exemple #1
0
 private bool EvalBitFunc(CodeGenerator.BitFunctionDelegate bitFunc, ITree arg, string reg)
 {
     var result = 0L;
     if (!EvaluateExpression(arg.GetChild(0), out result))
     {
         return false;
     }
     bitFunc(result, reg);
     return true;
 }
Exemple #2
0
 private bool EvalArithArgFunc(CodeGenerator.ArithmeticFuncDelegate arithFunc, ITree arg)
 {
     var result = 0L;
     if (!EvaluateExpression(arg.GetChild(0), out result))
     {
         return false;
     }
     arithFunc(result);
     return true;
 }