BizHawk/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Machine/ZXSpectrum48K/ZX48.Screen.cs

49 lines
990 B
C#
Raw Normal View History

2018-06-14 10:31:09 +00:00

2018-05-31 16:54:57 +00:00
namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
{
/// <summary>
/// 48K ULA
/// </summary>
class Screen48 : ULA
{
#region Construction
2018-05-31 16:54:57 +00:00
public Screen48(SpectrumBase machine)
: base(machine)
{
// interrupt
InterruptStartTime = 3;
InterruptLength = 32;
// offsets
RenderTableOffset = 56;
ContentionOffset = 6;
FloatingBusOffset = 1;
// timing
ClockSpeed = 3500000;
FrameCycleLength = 69888;
ScanlineTime = 224;
BorderLeftTime = 24;
BorderRightTime = 24;
FirstPaperLine = 64;
FirstPaperTState = 64;
// screen layout
Border4T = true;
Border4TStage = 0;
ScreenWidth = 256;
ScreenHeight = 192;
BorderTopHeight = 48;// 55;// 48;
BorderBottomHeight = 48;// 56;
BorderLeftWidth = 48;
BorderRightWidth = 48;
ScanLineWidth = BorderLeftWidth + ScreenWidth + BorderRightWidth;
2018-05-31 16:54:57 +00:00
RenderingTable = new RenderTable(this,
MachineType.ZXSpectrum48);
2018-05-31 16:54:57 +00:00
SetupScreenSize();
}
2018-05-31 16:54:57 +00:00
#endregion
}
2018-05-31 16:54:57 +00:00
}