Beispiel #1
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary>
 public SpectrumAdvancedTestMachine(IScreenFrameProvider renderer     = null,
                                    IScreenConfiguration screenConfig = null, ICpuConfiguration cpuConfig = null, string ulaIssue = "3") :
     base(new DeviceInfoCollection
 {
     new CpuDeviceInfo(cpuConfig ?? SpectrumModels.ZxSpectrum48Pal.Cpu),
     new RomDeviceInfo(new ResourceRomProvider(typeof(RomResourcesPlaceHolder).Assembly),
                       new RomConfigurationData
     {
         NumberOfRoms       = 1,
         RomName            = "ZxSpectrum48",
         Spectrum48RomIndex = 0
     },
                       new SpectrumRomDevice()),
     new MemoryDeviceInfo(
         new MemoryConfigurationData
     {
         SupportsBanking = false,
         ContentionType  = MemoryContentionType.Ula
     }, null),
     new ClockDeviceInfo(new ClockProvider()),
     new BeeperDeviceInfo(new AudioConfigurationData
     {
         AudioSampleRate = 35000,
         SamplesPerFrame = 699,
         TactsPerSample  = 100
     }, null),
     new ScreenDeviceInfo(screenConfig ?? SpectrumModels.ZxSpectrum48Pal.Screen,
                          renderer ?? new TestPixelRenderer(screenConfig ?? SpectrumModels.ZxSpectrum48Pal.Screen))
 }, ulaIssue)
 {
     StackPointerManipulations = new List <StackPointerManipulationEvent>();
     StackContentManipulations = new List <StackContentManipulationEvent>();
     BranchEvents          = new List <BranchEvent>();
     Cpu.StackDebugSupport = this;
 }
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary>
 public SpectrumAdvancedTestMachine(IScreenFrameProvider renderer = null, 
     IScreenConfiguration screenConfig = null, ICpuConfiguration cpuConfig = null): 
     base(new DeviceInfoCollection
     {
         new CpuDeviceInfo(cpuConfig ?? SpectrumModels.ZxSpectrum48Pal.Cpu),
         new RomDeviceInfo(new ResourceRomProvider(), 
             new RomConfigurationData
             {
                 NumberOfRoms = 1,
                 RomName = "ZXSpectrum48",
                 Spectrum48RomIndex = 0
             }, 
             new SpectrumRomDevice()),
         new ClockDeviceInfo(new ClockProvider()),
         new BeeperDeviceInfo(new BeeperConfigurationData
         {
             AudioSampleRate = 35000,
             SamplesPerFrame = 699,
             TactsPerSample = 100
         }, null),
         new ScreenDeviceInfo(screenConfig ?? SpectrumModels.ZxSpectrum48Pal.Screen, 
             renderer ?? new TestPixelRenderer(screenConfig ?? SpectrumModels.ZxSpectrum48Pal.Screen))
     })
 {
 }
Beispiel #3
0
 ///
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public Spectrum128AdvancedTestMachine(IScreenFrameProvider renderer     = null,
                                       IScreenConfiguration screenConfig = null, ICpuConfiguration cpuConfig = null) :
     base(new DeviceInfoCollection
 {
     new CpuDeviceInfo(cpuConfig ?? SpectrumModels.ZxSpectrum128Pal.Cpu),
     new RomDeviceInfo(new DefaultRomProvider(),
                       new RomConfigurationData
     {
         NumberOfRoms       = 2,
         RomName            = "ZxSpectrum128",
         Spectrum48RomIndex = 1
     },
                       new SpectrumRomDevice()),
     new MemoryDeviceInfo(new MemoryConfigurationData
     {
         SupportsBanking = true,
         RamBanks        = 8
     }, new Spectrum128MemoryDevice()),
     new PortDeviceInfo(null, new Spectrum128PortDevice()),
     new BeeperDeviceInfo(new AudioConfigurationData
     {
         AudioSampleRate = 35000,
         SamplesPerFrame = 699,
         TactsPerSample  = 100
     }, null),
     new ScreenDeviceInfo(screenConfig ?? SpectrumModels.ZxSpectrum128Pal.Screen,
                          renderer ?? new TestPixelRenderer(screenConfig ?? SpectrumModels.ZxSpectrum48Pal.Screen)),
     new SoundDeviceInfo(new AudioConfigurationData
     {
         AudioSampleRate = 55420,
         SamplesPerFrame = 1107,
         TactsPerSample  = 64
     }, null)
 })
 {
     StackPointerManipulations = new List <StackPointerManipulationEvent>();
     StackContentManipulations = new List <StackContentManipulationEvent>();
     BranchEvents          = new List <BranchEvent>();
     Cpu.StackDebugSupport = this;
 }
Beispiel #4
0
 ///
 /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public Spectrum128AdvancedTestMachine(IScreenFrameProvider renderer     = null,
                                       IScreenConfiguration screenConfig = null, ICpuConfiguration cpuConfig = null) :
     base(new DeviceInfoCollection
 {
     new CpuDeviceInfo(cpuConfig ?? SpectrumModels.ZxSpectrum128Pal.Cpu),
     new RomDeviceInfo(new ResourceRomProvider(typeof(RomResourcesPlaceHolder).Assembly),
                       new RomConfigurationData
     {
         NumberOfRoms       = 2,
         RomName            = "ZxSpectrum128",
         Spectrum48RomIndex = 1
     },
                       new SpectrumRomDevice()),
     new ClockDeviceInfo(new ClockProvider()),
     new MemoryDeviceInfo(new MemoryConfigurationData
     {
         SupportsBanking = true,
         RamBanks        = 8
     }, new Spectrum128MemoryDevice()),
     new PortDeviceInfo(null, new Spectrum128PortDevice()),
     new BeeperDeviceInfo(new AudioConfigurationData
     {
         AudioSampleRate = 35000,
         SamplesPerFrame = 699,
         TactsPerSample  = 100
     }, null),
     new ScreenDeviceInfo(screenConfig ?? SpectrumModels.ZxSpectrum128Pal.Screen,
                          renderer ?? new TestPixelRenderer(screenConfig ?? SpectrumModels.ZxSpectrum48Pal.Screen)),
     new SoundDeviceInfo(new AudioConfigurationData
     {
         AudioSampleRate = 55420,
         SamplesPerFrame = 1107,
         TactsPerSample  = 64
     }, null)
 })
 {
 }