/// <summary> /// Main constructor /// </summary> /// <param name="spectrum"></param> /// <param name="cpu"></param> public Pentagon128(ZXSpectrum spectrum, Z80A cpu, ZXSpectrum.BorderType borderType, List <byte[]> files, List <JoystickType> joysticks) { Spectrum = spectrum; CPU = cpu; CPUMon = new CPUMonitor(this); CPUMon.machineType = MachineType.Pentagon128; ROMPaged = 0; SHADOWPaged = false; RAMPaged = 0; PagingDisabled = false; ULADevice = new ScreenPentagon128(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); InitializeMedia(files); }
/// <summary> /// Main constructor /// </summary> /// <param name="spectrum"></param> /// <param name="cpu"></param> public ZX48(ZXSpectrum spectrum, Z80A cpu, ZXSpectrum.BorderType borderType, List <byte[]> files, List <JoystickType> joysticks) { Spectrum = spectrum; CPU = cpu; CPUMon = new CPUMonitor(this); //ULADevice = new ULA48(this); ULADevice = new Screen48(this); BuzzerDevice = new Beeper(this); BuzzerDevice.Init(44100, ULADevice.FrameLength); TapeBuzzer = new Beeper(this); TapeBuzzer.Init(44100, ULADevice.FrameLength); KeyboardDevice = new StandardKeyboard(this); InitJoysticks(joysticks); TapeDevice = new DatacorderDevice(spectrum.SyncSettings.AutoLoadTape); TapeDevice.Init(this); InitializeMedia(files); }
/// <summary> /// Main constructor /// </summary> /// <param name="spectrum"></param> /// <param name="cpu"></param> public ZX128Plus3(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 ULAPlus3(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); }