Beispiel #1
0
        public Engine(string filename)
        {
            CPU         = new CPU(this);
            PPU         = new PPU(this);
            APU         = new APU(this);
            IORegisters = new IORegisters(this, PPU);
            Joypads     = new Joypads();

            loadiNes(filename);
            Graphics = new Graphics(this, 256, 240);
            Joypads.Initialise();
        }
Beispiel #2
0
        public Engine(string filename)
        {
            CPU = new CPU(this);
            PPU = new PPU(this);
            APU = new APU(this);
            IORegisters = new IORegisters(this, PPU);
            Joypads = new Joypads();

            loadiNes(filename);
            Graphics = new Graphics(this, 256,240);
            Joypads.Initialise();
        }
Beispiel #3
0
        public void Load(Cartridge cart)
        {
            ram       = new byte[2048];
            this.cart = cart;
            mapper    = Mapper.Create(cart);
            cpu       = new CPU(this);
            ppu       = new PPU(this);

            if (mapper == null)
            {
                throw new Exception("Unknown mapper type: " + cart.mapper.ToString());
            }

            Reset();
        }
Beispiel #4
0
 public IORegisters(Engine engine, PPU ppu)
 {
     this.Engine   = engine;
     this.PPU      = ppu;
     this.PPUFlags = this.PPU.Flags;
 }
Beispiel #5
0
 public IORegisters(Engine engine, PPU ppu)
 {
     this.Engine = engine;
     this.PPU = ppu;
     this.PPUFlags = this.PPU.Flags;
 }
Beispiel #6
0
 public OamDma(PPU ppu, IAddressable bus)
 {
     _ppu = ppu;
     _bus = bus;
 }