starting to translate some of the PICSY kernel codes to Ruby