bugfix for ppu scrolling.
improve code for cpu emulation.
improve code for ppu.