using BizHawk.Emulation.Cores.Components.Z80A; using System.Collections.Generic; namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum { /// /// +3 Constructor /// public partial class ZX128Plus3 : SpectrumBase { #region Construction /// /// Main constructor /// /// /// public ZX128Plus3(ZXSpectrum spectrum, Z80A cpu, ZXSpectrum.BorderType borderType, List files, List joysticks) { Spectrum = spectrum; CPU = cpu; CPUMon = new CPUMonitor(this); CPUMon.machineType = MachineType.ZXSpectrum128Plus3; ROMPaged = 0; SHADOWPaged = false; RAMPaged = 0; PagingDisabled = false; ULADevice = new Screen128Plus2a(this); BuzzerDevice = new Beeper(this); BuzzerDevice.Init(44100, ULADevice.FrameLength); TapeBuzzer = new Beeper(this); TapeBuzzer.Init(44100, ULADevice.FrameLength); AYDevice = new AY38912(this); AYDevice.Init(44100, ULADevice.FrameLength); KeyboardDevice = new StandardKeyboard(this); InitJoysticks(joysticks); TapeDevice = new DatacorderDevice(spectrum.SyncSettings.AutoLoadTape); TapeDevice.Init(this); UPDDiskDevice = new NECUPD765(); UPDDiskDevice.Init(this); InitializeMedia(files); } #endregion } }