Adding existing CPU simulation code