コード例 #1
0
ファイル: Assembler.cs プロジェクト: Silenthal/gbread
 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;
 }
コード例 #2
0
ファイル: Assembler.cs プロジェクト: Silenthal/gbread
 private bool EvalArithArgFunc(CodeGenerator.ArithmeticFuncDelegate arithFunc, ITree arg)
 {
     var result = 0L;
     if (!EvaluateExpression(arg.GetChild(0), out result))
     {
         return false;
     }
     arithFunc(result);
     return true;
 }