1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-26 20:11:53 +00:00

Small tweaks to display controller in low-res mode; added support for Diablo 44 disks, added ST-76 on Diablo 44.

This commit is contained in:
Josh Dersch
2016-03-16 17:07:57 -07:00
parent dc0a85aed8
commit 2c99250ded
14 changed files with 229 additions and 50 deletions

View File

@@ -56,7 +56,7 @@ namespace Contralto.Display
{
get
{
return _dataBuffer.Count >= 14;
return _dataBuffer.Count >= 15;
}
}
@@ -101,15 +101,7 @@ namespace Contralto.Display
// Block DHT, DWT
_system.CPU.BlockTask(TaskType.DisplayHorizontal);
_system.CPU.BlockTask(TaskType.DisplayWord);
// TODO: this eliminates the garbage on the top two lines of the screen. We are likely
// not stopping the Word task at the right point at the end of the field, leading to it reading
// garbage for the first word(s) or so of the next field...
// OR: we need more time at the start of the scanline before rendering starts...
// Fix this right!
_system.CPU.Tasks[(int)TaskType.DisplayWord].Reset();
_system.CPU.BlockTask(TaskType.DisplayWord);
_fields++;
@@ -181,12 +173,12 @@ namespace Contralto.Display
{
_cursorXLatched = _cursorX;
_cursorXLatch = false;
}
}
// Schedule wakeup for first word on this scanline
// TODO: the delay below is chosen to reduce flicker on first scanline;
// investigate.
_wordWakeup.TimestampNsec = _wordDuration * 3;
_wordWakeup.TimestampNsec = _lowRes ? 0 : _wordDuration * 3;
_system.Scheduler.Schedule(_wordWakeup);
}