public void Dispose() { if (bus != null) { bus.Dispose(); bus = null; Disposed?.Invoke(this, EventArgs.Empty); } }
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; }
public MemoryBankController3(GameBoyMemoryBus bus) : base(bus) { rtcState = new RealTimeClockState(); }
public MemoryBankController5(GameBoyMemoryBus bus) : base(bus) { }
public MemoryBankController1(GameBoyMemoryBus bus) : base(bus) { /* this.extraBits = 0; */ /* this.bankedRamMode = false; */ }
/// <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) { }
internal Processor(GameBoyMemoryBus bus) { this.bus = bus; }
public RomController(GameBoyMemoryBus bus) : base(bus) { }
public RomController(GameBoyMemoryBus bus) : base(bus) { }
public MemoryBankController3(GameBoyMemoryBus bus) : base(bus) { rtcState = new RealTimeClockState(); }
public MemoryBankController1(GameBoyMemoryBus bus) : base(bus) { /* this.extraBits = 0; */ /* this.bankedRamMode = false; */ }