Ejemplo n.º 1
0
        // We are about to step
        public void OnPreBreakpointStep()
        {
            // Pop the current instruction and store it in our history
            executionHistory.Enqueue(new StoredInstruction(NextInstructions[0].RawInstruction, NextInstructions[0].FriendlyInstruction, NextInstructions[0].PC));
            NextInstructions.RemoveAt(0);

            // Only show last x instructions
            if (executionHistory.Count == Cpu.Pipeline_Size)
            {
                executionHistory.Dequeue();
            }
        }
Ejemplo n.º 2
0
        // We are about to step
        public void OnPreBreakpointStep()
        {
            // Pop the current instruction and store it in our history
            executionHistory.Enqueue(StoredInstruction.DeepCopy(NextInstructions[0]));
            NextInstructions.RemoveAt(0);

            // Only show last x instructions
            if (executionHistory.Count == Instruction_Depth)
            {
                executionHistory.Dequeue();
            }
        }