fix screen ram and character set address calculation
refactor to allow simulation of CPU with simulable clock.