public void Execute(ComputerMachine machine) { long rhs = machine.GetValue(value); long lhs = machine.GetValue(addr); machine.SetValue(addr, lhs % rhs); machine.PC++; }
public void Execute(ComputerMachine machine) { long cmpValue = machine.GetValue(cmp); if (cmpValue > 0) { long offsetValue = machine.GetValue(offset); machine.PC += (int)offsetValue; } else { machine.PC++; } }
public void Execute(ComputerMachine machine) { long rhs = machine.GetValue(value); machine.sendCount++; machine.sendQueue.Add(rhs); machine.PC++; }