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

54 lines
1.4 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;
2017-12-07 10:49:43 +00:00
ROMPaged = 0;
2017-12-05 10:02:57 +00:00
SHADOWPaged = false;
RAMPaged = 0;
PagingDisabled = false;
ULADevice = new ULA128(this);
2017-12-05 10:02:57 +00:00
BuzzerDevice = new Buzzer(this);
BuzzerDevice.Init(44100, ULADevice.FrameLength);
2017-12-05 10:02:57 +00:00
TapeBuzzer = new Buzzer(this);
TapeBuzzer.Init(44100, ULADevice.FrameLength);
AYDevice = new AYChip(this);
AYDevice.Init(44100, ULADevice.FrameLength);
KeyboardDevice = new StandardKeyboard(this);
InitJoysticks(joysticks);
2017-12-05 10:02:57 +00:00
TapeDevice = new DatacorderDevice();
2017-12-05 10:02:57 +00:00
TapeDevice.Init(this);
InitializeMedia(files);
2017-12-05 10:02:57 +00:00
}
#endregion
}
}