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; }
public CpuBus(RAM wram, PPU ppu, Cartridge cartridge) { this.wram = wram; this.ppu = ppu; this.cartridge = cartridge; }