Updated Z80 CPU to fix interrupts etc...
This commit is contained in:
@@ -110,11 +110,12 @@ namespace Desktop
|
||||
lblFrames.Text = $"Frames Rendered: {_mainForm.TotalFrameCount}";
|
||||
lblFrameTime.Text = $"Frame Time: {((float)_mainForm.FrameTime):F1}ms";
|
||||
lblFPS.Text = $"FPS: {_mainForm.FramesPerSecond:F2}";
|
||||
lblHalt.Text = $"CPU Halted: {_cpu.IsHalted}";
|
||||
lblR.Text = $"R: {_cpu.R:X2}";
|
||||
UpdateMemoryView();
|
||||
UpdateStackView();
|
||||
UpdateDisassemblyView();
|
||||
// --- AUDIO REGISTERS ---
|
||||
// Use _mainForm to access the Machine, and then grab the AudioProcessor!
|
||||
// --- AUDIO REGISTERS ---//
|
||||
if (_mainForm._machine != null && _mainForm._machine.AudioProcessor != null)
|
||||
{
|
||||
ushort[] apuRegs = _mainForm._machine.AudioProcessor.Registers;
|
||||
@@ -668,6 +669,9 @@ namespace Desktop
|
||||
case 0xC9:
|
||||
mnemonic = "RET";
|
||||
break;
|
||||
case 0x76:
|
||||
mnemonic = "HALT!";
|
||||
break;
|
||||
case 0xCB:
|
||||
cbOp = _memoryBus.Read((ushort)(currentPc + 1));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user