Implemenmted rendering priorities

This commit is contained in:
2026-05-12 00:30:28 +01:00
parent f825e102a2
commit 95ac0ec7c1
5 changed files with 125 additions and 55 deletions

View File

@@ -10,9 +10,9 @@ namespace Desktop
{
private readonly Z80 _cpu;
private readonly SmsMemoryBus _memoryBus;
private readonly Form1 _mainForm;
private readonly ParsonsForm1 _mainForm;
public DebuggerForm(Z80 cpu, SmsMemoryBus memoryBus, Form1 mainForm)
public DebuggerForm(Z80 cpu, SmsMemoryBus memoryBus, ParsonsForm1 mainForm)
{
InitializeComponent();
_cpu = cpu;
@@ -103,9 +103,9 @@ namespace Desktop
lblIE.Text = $"Interrupt Mode: {_cpu.InterruptMode}";
lblFlags.Text = $"Flags: {_cpu.GetFlagsString()}";
lblTStates.Text = $"T-States: {_cpu.TotalTStates}";
//lblFrames.Text = $"Frames Rendered: {_mainForm.TotalFrameCount}";
//lblFrameTime.Text = $"Frame Time: {((float)_mainForm.FrameTime):F1}ms";
//lblFPS.Text = $"FPS: {_mainForm.FramesPerSecond:F2}";
lblFrames.Text = $"Frames Rendered: {_mainForm.TotalFrameCount}";
lblFrameTime.Text = $"Frame Time: {((float)_mainForm.FrameTime):F1}ms";
lblFPS.Text = $"FPS: {_mainForm.FramesPerSecond:F2}";
UpdateMemoryView();
UpdateStackView();
UpdateDisassemblyView();