primo: startup code optimized for rom