/// <summary> /// Displays the current state of the processor. /// </summary> public void DumpState() { Console.WriteLine("State:"); Console.WriteLine("\tProgram Counter: " + ProgramCounter.GetString()); Console.WriteLine("\tInstruction: " + Instruction.GetString()); Console.WriteLine("\tOpcode: " + Instruction.GetOpCode().ToString()); Console.WriteLine("\tA: " + a.GetString()); Console.WriteLine("\tB: " + b.GetString()); Console.WriteLine("\tC: " + c.GetString()); Console.WriteLine("\tD: " + D.GetString()); Console.WriteLine("\tE: " + E.GetString()); Console.WriteLine("\tF: " + F.GetString()); Console.WriteLine("\tG: " + G.GetString()); Console.WriteLine("\tH: " + H.GetString()); Console.WriteLine("\tXL: " + XL.GetString()); Console.WriteLine("\tXH: " + XH.GetString()); Console.WriteLine(""); }