Visualization and Emulation of the 6502 Processor in HTML 5

As a student and as a software developer, I’m constantly trying to learn more, dig deeper and further educate myself on anything related to my field. What has my attention right now is lower-level software development and optimization targeted for specific hardware. There are a great many papers out there written on the subject, specifically optimization practices on Intel hardware and the importance of keeping cache size and cache line size in mind. What really caught my eye in this research, was a mixture of the old and the new.

In 1970s, there was a 8-bit CPU war going on between (amongst others) Intel and Motorola. Motorola’s team in charge of development of a new chip were soon moved to the small-time MOS company. To make a long story short, the team ended up producing the 6502, a competing 8-bit processor at 1/6 the cost of Intel’s and Motorola’s leading designs, sparking “a series of computer projects that would eventually result in the home computer revolution of the 1980s”. How influential was the 6502? For starters, it came bundled with the wildly popular Commodore, Apple and Atari home computers of the time, with variants of the 6502 also gracing Nintendo’s NES and Atari’s 2600 video game systems.

Moving forward in history, we now have cutting edge HTML 5 running on web browsers on computers with 1,000,000 times the memory that the Atari 2600 could support (8 KB could still do amazing things). And now, the group from Visual6502.org has made a great visualization of the processor in action using HTML 5’s canvas. The demo comes with a custom program which can be executed step-by-step with each instruction lighting up different transistors on the processor.

The best part? There’s a github repo: it’s open source.

Comments

2 responses to “Visualization and Emulation of the 6502 Processor in HTML 5”

  1. Mithun Avatar
    Mithun

    why motorola lost the CPU war to Intel?

    1. sweerdenburg Avatar

      That’s a good question. I’m not sure. My background is more in web technologies than microprocessors, I just found this online while teaching myself x86 Assembly.

      A lot of devices use microchips, but looking at why desktop computers moved to x86 chips (an architecture created by Intel), it could be something as simple as that the companies which wrote operating systems used by 6502-based (or other processor families) processors in their computers (Commodore, Atari, Apple) eventually lost out to Microsoft and DOS/Windows (which targeted x86 processors).

      Though that’s just a guess, and is probably not looking far enough into history to fully consider Motorola’s role.

Leave a Reply

Discover more from Software by Steven

Subscribe now to keep reading and get access to the full archive.

Continue reading