improve code for ppu vram mirroring.