private MasterComponent()
 {
     CPU = new CPU.CP1610();
     PSG = new PSG.AY_3_891x();
     MemoryMap = new Memory.MemoryMap();
     STIC = new STIC.AY_3_8900();
 }
Пример #2
0
        protected override void Initialize()
        {
            this.Window.Title = "Awesome Intellivision Emulator v0.0.0";
            this.IsMouseVisible = true;

            stic = new Intellivision.STIC.AY_3_8900();
            psg = new Intellivision.PSG.AY_3_891x();
            memory = new MemoryMap(ref stic, ref psg);
            cpu = new CP1610(ref memory);
            cpu.Halted_HALT += new CP1610.OutputSignalEvent(cpu_Halted_HALT);
            cpu.Log += new CP1610.LoggingEvent(cpu_Log);
            cpu.Registers[7] = 0x1000;

            registers = new RegisterDisplay(new Vector2(10, 10), ref cpu.Registers);
            commandDisplay = new CommandDisplay(new Vector2(10, 50));

            LoadSystemRom();
            RunEmulation();

            base.Initialize();
        }