Example #1
0
 public Process(Executable File, int MemorySize, API APIs)
 {
     hasData = false;
     api     = APIs;
     Vars    = new VariableManager(MemorySize);
     proc    = new Processor(Vars);
     Labels  = new int[MemorySize / 8];
     for (int i = 0; i < Labels.Length; i++)
     {
         Labels[i] = -1;
     }
     Running      = true;
     Current      = 0;
     Instructions = File.CPU();
 }
Example #2
0
 public Processor(VariableManager var)
 {
     this.var = var;
 }