private void waitForKernal() {
    while(!screen.ready()) {
      try {
	Thread.sleep(100);
      } catch (Exception e2) {
	System.out.println("Exception while sleeping... C64Applet");
      }
    }
  }