예제 #1
0
 public void Execute(ProcessingContext context)
 {
     if (context.GetValue(X) > 0)
     {
         context.PC += (int)context.GetValue(Y);
     }
     else
     {
         context.PC++;
     }
 }
예제 #2
0
 public void Execute(ProcessingContext context)
 {
     if (context.GetValue(X) != 0)
     {
         context.Stopped = true;
     }
     context.PC++;
 }
예제 #3
0
 public void Execute(ProcessingContext context)
 {
     context.Sound = context.GetValue(X);
     context.PC++;
 }
예제 #4
0
 public void Execute(ProcessingContext context)
 {
     context.Registers[X] = context.GetValue(X) % context.GetValue(Y);
     context.PC++;
 }
예제 #5
0
 public void Execute(ProcessingContext context)
 {
     context.SendBuffer.Enqueue(context.GetValue(X));
     context.SentValues++;
     context.PC++;
 }