Exemplo n.º 1
0
 public void Dispose()
 {
     if (bus != null)
     {
         bus.Dispose();
         bus = null;
         Disposed?.Invoke(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 public EmulatedGameBoy()
 {
     synchronizationContext = SynchronizationContext.Current;
     bus                   = new GameBoyMemoryBus();
     frameStopwatch        = new Stopwatch();
     frameRateStopwatch    = new Stopwatch();
     bus.EmulationStarted += OnEmulationStarted;
     bus.EmulationStopped += OnEmulationStopped;
     bus.BorderChanged    += OnBorderChanged;
     bus.ClockManager      = this;
     emulationStatus       = bus.UseBootRom ? EmulationStatus.Paused : EmulationStatus.Stopped;
 }
Exemplo n.º 3
0
		public MemoryBankController3(GameBoyMemoryBus bus)
			: base(bus)
		{
			rtcState = new RealTimeClockState();
		}
Exemplo n.º 4
0
 public MemoryBankController5(GameBoyMemoryBus bus)
     : base(bus)
 {
 }
Exemplo n.º 5
0
		public MemoryBankController1(GameBoyMemoryBus bus)
			: base(bus)
		{
			/* this.extraBits = 0; */
			/* this.bankedRamMode = false; */
		}
Exemplo n.º 6
0
		/// <summary>Initializes a new instance of the <see cref="MemoryBankController"/> class.</summary>
		/// <param name="bus">The memory bus associated with this instance.</param>
		public MemoryBankController(GameBoyMemoryBus bus)
			: base(bus) { }
Exemplo n.º 7
0
 internal Processor(GameBoyMemoryBus bus)
 {
     this.bus = bus;
 }
Exemplo n.º 8
0
 public RomController(GameBoyMemoryBus bus)
     : base(bus)
 {
 }
Exemplo n.º 9
0
		public RomController(GameBoyMemoryBus bus)
			: base(bus)
		{
		}
Exemplo n.º 10
0
 public MemoryBankController3(GameBoyMemoryBus bus)
     : base(bus)
 {
     rtcState = new RealTimeClockState();
 }
Exemplo n.º 11
0
 public MemoryBankController1(GameBoyMemoryBus bus)
     : base(bus)
 {
     /* this.extraBits = 0; */
     /* this.bankedRamMode = false; */
 }