/// <summary> /// Initializes a new instance of the <see cref="CacheAwareZ80Mmu"/> class. /// </summary> /// <param name="peripheralManager">The peripheral manager.</param> /// <param name="platformConfig">The platform configuration.</param> /// <param name="memoryBankController">The memory bank controller.</param> /// <param name="dmaController">The dma controller.</param> /// <param name="instructionTimer">The instruction timer.</param> public CacheAwareZ80Mmu(IPeripheralManager peripheralManager, IPlatformConfig platformConfig, IMemoryBankController memoryBankController, IDmaController dmaController, IInstructionTimer instructionTimer, IInstructionBlockCache instructionBlockCache) : base(peripheralManager, platformConfig, memoryBankController, dmaController, instructionTimer) { _instructionBlockCache = instructionBlockCache; }
/// <summary> /// Initializes a new instance of the <see cref="CachingCpuCore" /> class. /// </summary> /// <param name="registers">The registers.</param> /// <param name="interruptManager">The interrupt manager.</param> /// <param name="peripheralManager">The peripheral manager.</param> /// <param name="mmu">The mmu.</param> /// <param name="instructionTimer">The instruction timer.</param> /// <param name="alu">The alu.</param> /// <param name="opCodeDecoder">The opcode decoder.</param> /// <param name="instructionBlockFactory">The instruction block decoder.</param> /// <param name="dmaController">The dma controller.</param> /// <param name="messageBus">The message bus.</param> /// <param name="instructionBlockCache">The instruction block cache.</param> public CachingCpuCore(IRegisters registers, IInterruptManager interruptManager, IPeripheralManager peripheralManager, IMmu mmu, IInstructionTimer instructionTimer, IAlu alu, IOpCodeDecoder opCodeDecoder, IInstructionBlockFactory instructionBlockFactory, IDmaController dmaController, IMessageBus messageBus, IInstructionBlockCache instructionBlockCache) : base(registers, interruptManager, peripheralManager, mmu, instructionTimer, alu, opCodeDecoder, instructionBlockFactory, dmaController, messageBus, true) { _instructionBlockCache = instructionBlockCache; }