public OperationFetcher(IOperationReader Reader, IMemoryBankService BankService, IMemoryLocationAddressReader LocationReader) { m_Reader = Reader; m_BankService = BankService; m_LocationReader = LocationReader; }
public void Initialize() { m_BankService = new MemoryBankService(new List <IMemoryBank>() { new MemoryBank(32) }); m_Reader = new OperationReader(ArchitectureFactory.CreateArchitecture(m_BankService), _CreateReader()); }
public void Initialize() { m_Arch = _CreateArchitecture(); m_CPU = new CPU(); m_Oscillator = new Clock(); m_Bank = new MemoryBank(512); m_BankService = new MemoryBankService(new List <IMemoryBank>() { m_Bank }); m_AddressReader = new MemoryLocationAddressReader(); m_OpDtoReader = new OperationDTOReader(m_Arch); m_OpReader = new OperationReader(m_Arch, m_OpDtoReader); m_Fetcher = new OperationFetcher(m_OpReader, m_BankService, m_AddressReader); m_OpFeeder = new OperationFeeder(m_Fetcher); m_CPUConsumer = new CPUConsumer(m_CPU); SetupComponents(); }
public OperationProcessor(OperationService service, IOperationReader reader) { _service = service; _reader = reader; }