/// <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 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 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 OneBitBeeper(44100, ULADevice.FrameLength, 50, "SystemBuzzer"); TapeBuzzer = new OneBitBeeper(44100, ULADevice.FrameLength, 50, "TapeBuzzer"); 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); }
private void UpdateBorderNotes(ZXSpectrum.BorderType type) { switch (type) { case ZXSpectrum.BorderType.Full: lblBorderInfo.Text = "Original border sizes"; break; case ZXSpectrum.BorderType.Medium: lblBorderInfo.Text = "All borders 24px"; break; case ZXSpectrum.BorderType.None: lblBorderInfo.Text = "No border at all"; break; case ZXSpectrum.BorderType.Small: lblBorderInfo.Text = "All borders 10px"; break; case ZXSpectrum.BorderType.Widescreen: lblBorderInfo.Text = "No top and bottom border (almost 16:9)"; break; } }
private void UpdateBorderNotes(ZXSpectrum.BorderType type) { lblBorderInfo.Text = type switch { ZXSpectrum.BorderType.Full => "Original border sizes", ZXSpectrum.BorderType.Medium => "All borders 24px", ZXSpectrum.BorderType.None => "No border at all", ZXSpectrum.BorderType.Small => "All borders 10px", ZXSpectrum.BorderType.Widescreen => "No top and bottom border (almost 16:9)", _ => lblBorderInfo.Text }; } }
/// <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 Screen48(this); BuzzerDevice = new OneBitBeeper(44100, ULADevice.FrameLength, 50, "SystemBuzzer"); TapeBuzzer = new OneBitBeeper(44100, ULADevice.FrameLength, 50, "TapeBuzzer"); 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; ULADevice = new ULA48(this); BuzzerDevice = new Buzzer(this); BuzzerDevice.Init(44100, ULADevice.FrameLength); TapeBuzzer = new Buzzer(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 ZX128Plus2(ZXSpectrum spectrum, Z80A cpu, ZXSpectrum.BorderType borderType, List <byte[]> files, List <JoystickType> joysticks) : base(spectrum, cpu, borderType, files, joysticks) { }