示例#1
0
        public PPU(Cartridge cartridge)
        {
            paletteRam = new RAM(0x20);   // パレットRAMは32Byte
            spriteRam  = new RAM(0x100);  // スプライトRAMは256Byte
            videoRam   = new RAM(0x2000); // ビデオRAMは8KByte

            characterROM = cartridge.CharacterRom;

            cycle    = 0;
            scanLine = 0;
        }
示例#2
0
文件: CpuBus.cs 项目: nixjoe/SharpNES
 public CpuBus(RAM wram, PPU ppu, Cartridge cartridge)
 {
     this.wram      = wram;
     this.ppu       = ppu;
     this.cartridge = cartridge;
 }