Sound fixed and complete. More OpCodes to implement

This commit is contained in:
2026-04-21 17:12:42 +01:00
parent b6eb77318d
commit a63152b04d
4 changed files with 69 additions and 5 deletions

View File

@@ -79,6 +79,8 @@ namespace Desktop
if (_isPaused)
{
stopwatch.Restart();
scanlineCount = 0;
Thread.Sleep(10);
continue;
}
@@ -174,6 +176,7 @@ namespace Desktop
private void loadTAPToolStripMenuItem_Click(object sender, EventArgs e)
{
_isPaused = true;
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "Spectrum TAP Files|*.tap";
@@ -183,9 +186,11 @@ namespace Desktop
_cpu._tapManager.LoadTapData(tapBytes);
}
}
_isPaused = false;
}
private void openSNAToolStripMenuItem_Click(object sender, EventArgs e)
{
_isPaused = true;
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "Snapshot Files (sna,z80)|*.sna";
@@ -195,6 +200,7 @@ namespace Desktop
_cpu.LoadSNA(snaBytes);
}
}
_isPaused = false;
}
private void btnRun_Click(object sender, EventArgs e) => _isPaused = false;