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