Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 4
0
 public IORegisters(Engine engine, PPU ppu)
 {
     this.Engine   = engine;
     this.PPU      = ppu;
     this.PPUFlags = this.PPU.Flags;
 }
Exemplo n.º 5
0
 public IORegisters(Engine engine, PPU ppu)
 {
     this.Engine = engine;
     this.PPU = ppu;
     this.PPUFlags = this.PPU.Flags;
 }
Exemplo n.º 6
0
 public OamDma(PPU ppu, IAddressable bus)
 {
     _ppu = ppu;
     _bus = bus;
 }