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; }
private bool EvalArithArgFunc(CodeGenerator.ArithmeticFuncDelegate arithFunc, ITree arg) { var result = 0L; if (!EvaluateExpression(arg.GetChild(0), out result)) { return false; } arithFunc(result); return true; }