DEV Community

James
James

Posted on • Originally published at ncot.uk on

2 1

Conway's Life in Z80 Assembly

After the fun of writing the Zombies game in Z80, I had a go at writing a version of Conway’s Life in Z80.

Watch the video!

Grab the code!

The source code and compiled binary can be obtained from my Github Repo here. Feel free to copy it and make modifications. If you fix or improve it, let me know!

Life? What is Life?

Life is a type of program called a cellular automaton which is just a fancy way of saying it’s a simulation. In this simulation there are small units called cells, and each cell can be either alive or dead. Their state is dictated by a set of rules, and their neighbouring cells. The rules are really simple

  • A cell with 2 or 3 neighbours remains alive if it already is
  • A cell with 2 neighbours comes back alive if it’s dead
  • A cell with anything else dies off, or stays dead

From these simple rules you can get incredibly fascinating patterns, and it’s a great example of something called emergent behaviour

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more