Added Debugger

This commit is contained in:
2026-04-08 22:36:26 +01:00
parent d857c88d12
commit 5550eb8c91
5 changed files with 563 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ namespace Desktop
{
public partial class Form1 : Form
{
private Z80 _cpu;
private MemoryBus _memoryBus;
private Z80 _cpu = null!;
private MemoryBus _memoryBus = null!;
public Form1()
{
@@ -33,7 +33,9 @@ namespace Desktop
// 4. Initialize the CPU with the populated memory
_cpu = new Z80(_memoryBus);
MessageBox.Show("ROM loaded and CPU initialized successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
DebuggerForm debugger = new DebuggerForm(_cpu, _memoryBus);
debugger.Show();
//MessageBox.Show("ROM loaded and CPU initialized successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{