示例#1
0
 private void initialize()
 {
     Flags.reset();
     Alu.reset();
     Halt      = false;
     Cycles    = 0;
     instCount = 0;
 }
示例#2
0
 public Cpu(Bus bus)
 {
     Hz                  = 2000000;
     this.Bus            = bus;
     Reg                 = new Register();
     Flags               = new StatusRegister();
     Alu                 = new Alu();
     Decoder             = new InstructionHandler(this);
     Bus.InterruptEvent += Bus_InterruptEvent;
     ThrottleFrequency   = 100;
 }