예제 #1
0
 public SpriteOam(PPURegisters ppuRegisters, IMemory oam, TileSet tileset)
 {
     PPURegisters          = ppuRegisters;
     ObjectAttributeMemory = oam;
     Tileset = tileset;
     UpdateFrom(ObjectAttributeMemory);
 }
예제 #2
0
 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);
 }