In 1984, the game Core Wars was written and introduced to the public. Contestants write programs in a special language called redcode, and attempt to halt or overwrite the other programs in order to be the last game standing.
Here’s a beginner’s guide to redcode
Here is a link to a page that has html versions of the original scientific American articles that introduced the game.
Here are a couple more links to pages about the game.