Пример #1
0
            public override EmulatorState Run(EmulatorState currentState)
            {
                EmulatorState newState = currentState.Clone();

                newState.IncrementInstructionCount();
                newState.IncrementCurrentIndex(1);
                return(newState);
            }
Пример #2
0
            public override EmulatorState Run(EmulatorState currentState)
            {
                EmulatorState newState = currentState.Clone();

                newState.IncrementInstructionCount();
                if (!newState.TerminateRun)
                {
                    newState.IncrementCurrentIndex(argument);
                }
                return(newState);
            }