[rom] initial checkin of some rom code