public CPU(SharedObjects shared) { this.shared = shared; this.shared.Cpu = this; stack = new Stack(); vars = new Dictionary<string, Variable>(); contexts = new List<ProgramContext>(); if (this.shared.UpdateHandler != null) this.shared.UpdateHandler.AddObserver(this); }
public CPU(SharedObjects shared) { _shared = shared; _shared.Cpu = this; _stack = new Stack(); _vars = new Dictionary<string, Variable>(); _contexts = new List<ProgramContext>(); if (_shared.UpdateHandler != null) _shared.UpdateHandler.AddObserver(this); Boot(); }