Exemple #1
0
 public Map(Memory memory, NesEngine engine)
 {
     Engine = engine;
     Cartridge = new Cartridge(memory);
 }
Exemple #2
0
 public Map(Memory memory, NesEngine engine)
 {
     Engine    = engine;
     Cartridge = new Cartridge(memory);
 }
Exemple #3
0
        /// <summary>
        /// The picture unit
        /// </summary>
        /// <param name="tv">The tv format</param>
        /// <param name="paletteFormat">Palette Format</param>
        /// <param name="engine">Engine NES</param>
        public Ppu(TvFormat tv, PaletteFormat paletteFormat, NesEngine engine)
        {
            _engine = engine;
            _cartridge = _engine.Memory.Map.Cartridge;

            VRam = new byte[0x2000];
            SprRam = new byte[0x100];
            SetTvFormat(tv, paletteFormat);
            Debug.WriteLine(this, "PPU initialized ok.", DebugStatus.Cool);
        }