BizHawk/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/Machine/ZXSpectrum128K/ZX128.cs

58 lines
1.6 KiB
C#
Raw Normal View History

2017-12-05 10:02:57 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BizHawk.Emulation.Cores.Components.Z80A;
namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
{
public partial class ZX128 : SpectrumBase
{
#region Construction
/// <summary>
/// Main constructor
/// </summary>
/// <param name="spectrum"></param>
/// <param name="cpu"></param>
public ZX128(ZXSpectrum spectrum, Z80A cpu, ZXSpectrum.BorderType borderType, List<byte[]> files, List<JoystickType> joysticks)
2017-12-05 10:02:57 +00:00
{
Spectrum = spectrum;
CPU = cpu;
2018-05-31 16:54:57 +00:00
CPUMon = new CPUMonitor(this);
CPUMon.machineType = MachineType.ZXSpectrum128;
2017-12-07 10:49:43 +00:00
ROMPaged = 0;
2017-12-05 10:02:57 +00:00
SHADOWPaged = false;
RAMPaged = 0;
PagingDisabled = false;
2018-05-31 16:54:57 +00:00
//ULADevice = new ULA128(this);
ULADevice = new Screen128(this); // still todo
2017-12-05 10:02:57 +00:00
BuzzerDevice = new Beeper(this);
BuzzerDevice.Init(44100, ULADevice.FrameLength);
2017-12-05 10:02:57 +00:00
TapeBuzzer = new Beeper(this);
TapeBuzzer.Init(44100, ULADevice.FrameLength);
AYDevice = new AY38912(this);
AYDevice.Init(44100, ULADevice.FrameLength);
KeyboardDevice = new StandardKeyboard(this);
InitJoysticks(joysticks);
2017-12-05 10:02:57 +00:00
TapeDevice = new DatacorderDevice(spectrum.SyncSettings.AutoLoadTape);
2017-12-05 10:02:57 +00:00
TapeDevice.Init(this);
InitializeMedia(files);
2017-12-05 10:02:57 +00:00
}
#endregion
}
}