Ejemplo n.º 1
0
 protected virtual void InitbaseClass(string name)
 {
     _metaData = new metaData(name);
 }
Ejemplo n.º 2
0
        protected virtual void InitVid_Base(string name, Int32 bufferSize
						, Int32 registerCount, Size res)
        {
            m_meta=new metaData(name);

            m_bufferSize=bufferSize;
            m_buffer=new byte[bufferSize];

            m_videoRegisterCount=registerCount;
            if(registerCount>0)
                m_videoRegisters=new byte[registerCount];

            resolution = res;
        }
Ejemplo n.º 3
0
        protected virtual void InitKeyboard_Base(string name, KeyMap map
						, byte[] bffr, metaData _meta, Int32 mapSiz, Int32 bufSiz)
        {
            mapSize = mapSiz;
            bufferSize = bufSiz;

            if(_meta != null) meta = _meta;
            else meta = new metaData(name);

            if(map != null) _keyMap = map;
            else if(mapSiz > 0) _keyMap = new KeyMap(mapSiz);

            if(bffr != null) _keyBuffer = bffr;
            else if(bufSiz > 0) _keyBuffer = new byte[bufSiz];
        }
Ejemplo n.º 4
0
        protected virtual void InitC_Base(string name = ""
						, Mem_Base prgMem = null, Mem_Base wrkMem = null
						, Vid_Base vid=null)
        {
            DoCycle = new DoCycleDelegate(DoCycle_Main);
            m_meta=new metaData(name);
            programMemory = prgMem;
            workingMemory = wrkMem;
            video=vid;
        }
Ejemplo n.º 5
0
 protected virtual void InitDisplay(string name, Vid_Base vid)
 {
     BackColor=Color.Black;
     m_meta = new metaData(name);
     video = vid;
 }
Ejemplo n.º 6
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];
        }