Learn 6502 Assembler The Easy Way
Written by Mike James   
Monday, 09 July 2012

For the majority of programmers there really isn't any need to learn assembler, but if you do you will find that you understand how everything works so much better. A new resource introduces you to 6502 assembler with a live environment where you can try out your programs.

Nick Morgan describes Easy 6502 as a tiny ebook - but it's an ebook with a difference - you can actually use it to run programs. But why 6502 assembly language and what exactly is it?

 "The 6502 processor was massive in the seventies and eighties, powering famous computers like the BBC Micro, Atari 2600, Commodore 64, and the Nintendo Entertainment System. Bender in Futurama has a 6502 processor for a brain. Even the Terminator was programmed in 6502."

OK, but the 6502 is pretty much dead and gone.  Why not learn a more useful assembly language like x86?

"Well, I don’t think learning x86 is useful. I don’t think you’ll ever have to write assembly language in your day job – this is purely an academic exercise, something to expand your mind and your thinking. 6502 was written in a different age, a time when the majority of developers were writing assembly directly, rather than in these new-fangled high-level programming languages. So, it was designed to be written by humans. More modern assembly languages are meant to written by compilers, so let’s leave it to them. Plus, 6502 is fun. Nobody ever called x86 fun."

I'd differ with the final point as our own Harry Fairhead has been known to say that x86 was fun, but only after a session working with some primitive embedded controller in machine code.

assembly6502easy

 

If you have a look at the ebook, you will soon be actually writing code and seeing what it does. This is a great way to learn. It takes you through the basics, registers,  branching, addressing modes, the stack and so on. If anything it finishes a tiny bit too soon but when you get to the end you will at least understand what makes assembly language - any assembly language - different from high level language and you will even beginning to see what the job is that compilers do.

Try it out!

 

 

chip6502

 

 

More Information

Easy 6502

Related Articles

Assemblers and assembly language

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


TestSprite Announces End-to-End QA Tool
14/11/2024

TestSprite has announced an early access beta program for its end-to-end QA tool, along with $1.5 million pre-seed funding aimed at accelerating product development, expanding the team, and scaling op [ ... ]



.NET 9 Released
18/11/2024

.NET 9 has been released with a number of performance improvements and new features designed to help developers use AI.


More News

 

Last Updated ( Monday, 09 July 2012 )