basic graphic init and cpu emulation