コード例 #1
0
ファイル: GbaDebugConsole.cs プロジェクト: 5l1v3r1/Y2Gba
        // 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();
            }
        }
コード例 #2
0
ファイル: DmgDebugConsole.cs プロジェクト: gb-archive/DMG
        // 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();
            }
        }