Пример #1
0
 /// <summary>
 /// Sets the cache for the CPU passed in with size matching the largest program in the job file
 /// </summary>
 /// <param name="core">Core the cache is set for</param>
 static void LoadCPUCache(CPU core)
 {
     core.Cache = new Word[Driver.LargestProgram];
     for (int i = 0; i < core.ActiveProgram.ProgramSize; i++)
     {
         core.Cache[i] = MMU.ReadWord(i, core.ActiveProgram);
     }
 }