public SpriteOam(PPURegisters ppuRegisters, IMemory oam, TileSet tileset) { PPURegisters = ppuRegisters; ObjectAttributeMemory = oam; Tileset = tileset; UpdateFrom(ObjectAttributeMemory); }
public MemoryBus(PPURegisters ppuRegisters) { PPURegisters = ppuRegisters; //Randomize(wram); //Randomize(zram); //Randomize(VideoMemory); //Randomize(ObjectAttributeMemory); TileSet = new TileSet(VideoMemory); SpriteOam = new SpriteOam(ppuRegisters, ObjectAttributeMemory, TileSet); Timer = new Timer(this); }