Ejemplo n.º 1
0
        public M_Base(string name, C_Base cpu, Mem_Base prgMem, Mem_Base wrkMem
					, Vid_Base vid, Disp_Base disp)
        {
            InitM_Base(name, cpu, prgMem, wrkMem, vid, disp);
        }
Ejemplo n.º 2
0
        protected virtual void InitM_Base(string name="", C_Base cpu=null
					, Mem_Base prgMem = null, Mem_Base wrkMem = null
					, Vid_Base vid=null, Disp_Base disp=null)
        {
            _settings = settings.main;
            _pathSettings = _settings.paths;

            meta = new metaData(name);
            _timer = new System.Timers.Timer();
            _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);

            m_cpu = cpu;
            _programMemory = prgMem;
            _workingMemory = wrkMem;
            m_video = vid;
            m_display = disp;

            //ThreadStart ts = new ThreadStart(
            interval = 0;
            _threadStart = new ThreadStart(this.Runner);

            rewindStates = new state[rewindMax];
        }
Ejemplo n.º 3
0
        public M_Base(string name, C_Base cpu, Mem_Base mem
					, Vid_Base vid, Disp_Base disp)
        {
            InitM_Base(name, cpu, mem, mem, vid, disp);
        }
Ejemplo n.º 4
0
        public void Init(M_Base _machine, consoleRef _Console)
        {
            machine = _machine;
            cpu = machine.cpu;
            programMemory = machine.programMemory;
            workingMemory = machine.workingMemory;
            video = machine.video;
            display = machine.display;

            console = _Console;
            OnInit(new EventArgs());
        }