コード例 #1
0
ファイル: Forth.cs プロジェクト: Sunlighter/SimpleForth
 public static void Not(Forth f)
 {
     bool b = f.PopBool();
     f.PushBool(!b);
 }
コード例 #2
0
ファイル: Forth.cs プロジェクト: Sunlighter/SimpleForth
 public static void JumpIfFalse(Forth f)
 {
     int target = (int)f.PopInt64();
     bool flag = f.PopBool();
     if (!flag) f.rStack.Top = target;
 }