Example #1
0
 public OperationFetcher(IOperationReader Reader,
                         IMemoryBankService BankService,
                         IMemoryLocationAddressReader LocationReader)
 {
     m_Reader         = Reader;
     m_BankService    = BankService;
     m_LocationReader = LocationReader;
 }
Example #2
0
        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();
        }
Example #3
0
 public void Initialize()
 {
     m_Reader = new MemoryLocationAddressReader();
     m_Bank   = new MemoryBank(8);
 }