Gaming Steve

November 16, 2005

Atari 2600 Game Code Visualized

Combat.gifImagine you could take programming code and turn all the mathematical instructions into a graphical representation. Not only would this look cool but it could actually be useful in visualizing the code and how various elements work with one another. Media artist Ben Fry has done just this -- he took the assembly code of past Atari 2600 games and mapped their execution visually with surprising results.

Ben's transformation from binary code into a visual map is quite interesting. First Ben maps out the binary code of the cartridge itself using a series of numbers for lines of code and orange boxes for bytes of data. Then examines each line the code and the results of all conditional statements (i.e. if x is true, go to y). If the math results in a true statement a curve is drawn from that point to its destination. The end result is a elegant mix of curves and numbers.

What's really interesting to see how the programing varies by game. Extremely simple games, such as Combat, are light and airy. While complex games, such as Pac-Man, are a tangle of lines and curves. Unfortunately he only has six games on the site including Adventure, Air Raid, Combat, Pac-Man, Pitfall, and Q-Bert. But could you imagine what a modern game would look like mapped out using this method? Scary.

Posted by Gaming Steve at 04:00 PM | Comments (3) | Posted to Classic | Random | Add this story to del.icio.us
Comments

Whoa...that's one of the coolest things I've seen...in a long time.

Posted by SenseiJinx at November 16, 2005 08:12 PM

This is a great way to visualize what code is doing. I wrote some small 6502 assembly programs way back in time on an Atari 800. This type of visual tool would have really helped. Great find, Steve.

Posted by SurfMurph at November 17, 2005 12:35 PM

I remember the long hours spent playing 2 player Combat - those side on planes defying all laws of physics. :)

Anyway this mapping thing - looks like an interesting way to pass the day, however I want to see "Haunted House" before I buy into it ;)

Posted by Sharpfish at November 23, 2005 06:27 PM