Example #1
0
 public CpuState(Cpu cpu)
 {
     RegisterFrame     = cpu.RegisterFrame;
     FlagRegisterFrame = cpu.FlagRegisterFrame;
     TimeUse           = cpu.TimeUse;
     Stack             = cpu.Stack;
     Memory            = cpu.Memory;
     ProcStackTrace    = cpu.ProcStackTrace;
 }
Example #2
0
 public CpuState(int memorySize = 1048576)
 {
     RegisterFrame     = new RegisterFrame();
     FlagRegisterFrame = new FlagRegisterFrame();
     Memory            = new int[memorySize];
     Stack             = new Stack <object>();
     ProcStackTrace    = new Stack <int>();
     TimeUse           = 0;
 }