optimized and fixed CPU reading from ROM