Beispiel #1
0
            public void Execute(ComputerMachine machine)
            {
                long rhs = machine.GetValue(value);
                long lhs = machine.GetValue(addr);

                machine.SetValue(addr, lhs % rhs);
                machine.PC++;
            }
Beispiel #2
0
            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++;
                }
            }
Beispiel #3
0
            public void Execute(ComputerMachine machine)
            {
                long rhs = machine.GetValue(value);

                machine.sendCount++;
                machine.sendQueue.Add(rhs);

                machine.PC++;
            }