//public dumb_Debug debug; public dumb_CHIP8M(dumb_Video gfx) { this._cpu = new CHIP8_CPU(this); this._ram = new CHIP8_RAM(this); this._gfx = new CHIP8_GFX(this); this._snd = new CHIP8_SND(this); this._key = new CHIP8_KEY(this); this.input = new dumb_Input(ref _key); this.sound = new dumb_Sound(ref _snd); this.video = gfx; parts.Add(_cpu); parts.Add(_ram); parts.Add(_gfx); parts.Add(_snd); parts.Add(_key); services.Add(input); services.Add(sound); services.Add(video); //this.debug = new dumb_Debug(ref _cpu); //services.Add(debug); }
public dumb_CHIP8M() { this._cpu = new CHIP8_CPU(this); this._ram = new CHIP8_RAM(this); this._gfx = new CHIP8_GFX(this); this._snd = new CHIP8_SND(this); this._key = new CHIP8_KEY(this); this.input = new dumb_Input(_key); this.sound = new dumb_Sound(_snd); this.video = new dumb_Video(_gfx); parts.Add(_cpu); parts.Add(_ram); parts.Add(_gfx); parts.Add(_snd); parts.Add(_key); services.Add(input); services.Add(sound); //services.Add(video); }
public dumb_Debug(ref CHIP8_CPU CPU) { _cpu = CPU; }