예제 #1
0
 public override void RunInstruction(InterpreterState state)
 {
     if (state.GetCurrentValue() != 0)
     {
         state.CurrentInstruction = MatchingInstruction;
         Debug.WriteLine(Number + ": !0 Jumping to " + MatchingInstruction.Number);
     }
 }
예제 #2
0
 public override void RunInstruction(InterpreterState state)
 {
     var ch = (byte)state.GetCurrentValue();
     char c = Encoding.ASCII.GetChars(new[] { ch })[0];
     Console.Write(c);
 }