Close

Game of Life

A project log for Dodo: 6502 Game System

Handheld Game System featuring the 6502

peter-noyesPeter Noyes 02/20/2016 at 20:280 Comments

As a next test I thought it would be interesting to implement the famous "Game of Life" cellular division simulation. I wrote it in 'C' and it didn't work at first, or so I thought. Well, it does work, but it renders about a frame per minute! My code is completely unoptimized and plus there is overhead from using C.

Each frame involves reading 73,728 pixels (128*64*9), and each read involves a multiplication, addition, modulus, many shifts, and an and. I could make it a bit faster I am sure, but this application is a bit tough on my little 6502!

The good news is that I have been letting it run for hours and it just keeps chugging along!

Discussions