private void FillPaletteBuffer(int paletteNum)
 {
     for (int i = 0; i < 4; i++)
     {
         paletteBuffer[i] = ppu.ReadMemory((ushort)(Ppu.PalleteAddressStart + paletteNum * 4 + i));
     }
 }