private void Interpretor_InstructionMoved(AsmInterpretor interpretor, int instruction)
        {
            if (visitedInstructions.Get(instruction))
            {
                interpretor.Stop();
            }

            visitedInstructions.Set(instruction, true);
        }
Exemplo n.º 2
0
        private void Interpretor_InstructionMoved(AsmInterpretor interpretor, int instruction)
        {
            if (visitedInstructions.Get(instruction))
            {
                Log.Information("Loop detected. Accumulator is {Accumulator}", interpretor.AccumulatorValue);
                interpretor.Stop();
            }

            visitedInstructions.Set(instruction, true);
        }