1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-27 04:21:51 +00:00

Minor bugfixes, introduced a new timing infrastructure and moved DiskController over to it. Minor performance improvements; now running at 110% speed. Display timing is still too slow.

This commit is contained in:
Josh Dersch
2015-11-17 16:09:50 -08:00
parent 03661fc90b
commit cbcfd2b47e
33 changed files with 591 additions and 436 deletions

View File

@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Contralto.Logging;
using System.Collections.Generic;
using Contralto.CPU;
namespace Contralto.Display
@@ -27,6 +21,12 @@ namespace Contralto.Display
_display = display;
}
public int Fields
{
get { return _fields; }
set { _fields = value; }
}
public void Reset()
{
_evenField = true;
@@ -254,9 +254,9 @@ namespace Contralto.Display
// Timing constants
// 38uS per scanline; 4uS for hblank.
// ~35 scanlines for vblank (1330uS)
private const double _wordClocks = (34.0 / 38.0) / 0.017; // uSec to clocks
private const double _horizontalBlankClocks = 4.0 / 0.017;
private const double _verticalBlankClocks = 1333.0 / 0.017;
private const double _wordClocks = (34.0 / 38.0) / 0.060; // uSec to clocks
private const double _horizontalBlankClocks = 4.0 / 0.060;
private const double _verticalBlankClocks = 1333.0 / 0.060;
}