Пример #1
0
        public static MemoryManager GetInstance()
        {
            if (instance == null)
                instance = new MemoryManager();

            return instance;
        }
Пример #2
0
        private Processor()
        {
            registers = new uint[REGISTERS_COUNT];
            for (int i = 0; i < REGISTERS_COUNT; i++)
                registers[i] = 0;

            memory = MemoryManager.GetInstance();
        }