50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
![]() |
using BizHawk.Emulation.Cores.Components.Z80A;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
|
{
|
|||
|
public partial class ZX128Plus2a : SpectrumBase
|
|||
|
{
|
|||
|
#region Construction
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Main constructor
|
|||
|
/// </summary>
|
|||
|
/// <param name="spectrum"></param>
|
|||
|
/// <param name="cpu"></param>
|
|||
|
public ZX128Plus2a(ZXSpectrum spectrum, Z80A cpu, ZXSpectrum.BorderType borderType, List<byte[]> files, List<JoystickType> joysticks)
|
|||
|
{
|
|||
|
Spectrum = spectrum;
|
|||
|
CPU = cpu;
|
|||
|
|
|||
|
ROMPaged = 0;
|
|||
|
SHADOWPaged = false;
|
|||
|
RAMPaged = 0;
|
|||
|
PagingDisabled = false;
|
|||
|
|
|||
|
ULADevice = new ULAPlus2a(this);
|
|||
|
|
|||
|
BuzzerDevice = new Buzzer(this);
|
|||
|
BuzzerDevice.Init(44100, ULADevice.FrameLength);
|
|||
|
|
|||
|
AYDevice = new AY38912();
|
|||
|
AYDevice.Init(44100, ULADevice.FrameLength);
|
|||
|
|
|||
|
KeyboardDevice = new StandardKeyboard(this);
|
|||
|
|
|||
|
InitJoysticks(joysticks);
|
|||
|
|
|||
|
TapeDevice = new DatacorderDevice();
|
|||
|
TapeDevice.Init(this);
|
|||
|
|
|||
|
InitializeMedia(files);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|