Ejemplo n.º 1
0
 //--------------------------------------------------------------
 // Purpose: Computer constructor
 //--------------------------------------------------------------
 public Computer(Observer _obs)
 {
     progRAM    = new Memory(32768);
     registers  = new Memory(72);
     cpu        = new CPU(progRAM, registers);
     end        = false;
     charBuffer = new CharBuffer();
     obs        = _obs;
     obsTest    = new ObserverTest();
     obsTest.Attach(obs);
 }
Ejemplo n.º 2
0
 public Operation()
 {
     observer = new ObserverTest();
     observer.Attach(Computer.GetObserver());
 }