Microsoft founder Bill Gates is remembering the code he wrote a half century ago—code that played a critical role in creating the company.