Added Debugger
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user