Пример #1
0
Файл: VM.cs Проект: Greedelis/OS
 public VM(CentralCPU cpu, Parser parser, Memory memory, SoftDisk disk, List <int> allowedBlocks)
 {
     m_cpu           = cpu;
     m_parser        = parser;
     m_memory        = memory;
     m_allowedBlocks = allowedBlocks;
     m_disk          = disk;
 }
Пример #2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Yo what you girls doin tonight is what I wanted to say");

            var cpu = CentralCPU.Instance();
            var vm  = cpu.CreateVM();


            //vm.StoreCommandsInMemory(Example2);
            //Sita ant loop gal?
            if (vm.ExecuteCommandFromFile())
            {
                vm.ReadFromMemory();
            }
        }
Пример #3
0
 public Parser(CentralCPU cpu)
 {
     m_cpu = cpu;
 }