//-------------------------------------------------------------- // 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); }
public Operation() { observer = new ObserverTest(); observer.Attach(Computer.GetObserver()); }