6502 Machine Language Tables and Aids

  /     /   Assembly     Programming     Retro    

When programming using machine code there are a few useful aids that can make it easier to do. I have created a couple of tables for the 6502 that can make the process easier. They are based on tables found in 'Machine Code for Beginners', which Usborne have made available as a PDF for free.

6502 Machine Language Hex Codes

When writing a program in machine code we need to be able to quickly find the machine language hex code for the instruction we want to enter. The following table should make this fairly simple.

Two's Complement Hex Code

If we need to use a negative number such as when using relative addresses, then the following table will allow us to quickly find the correct hex code to use. For example the two's complement of -92 in hex is A4.

Source Files

If you want to alter these tables, I have put the original files used to create them in a repo on GitHub.

Creative Commons License
6502 Machine Language Tables and Aids by Lawrence Woodman is licensed under a Creative Commons Attribution 4.0 International License.

Related Articles

Adding Basic Stubs to Assembly Language on the Commodore VIC-20

To make machine language programs more friendly it's nice to add a Basic stub which contains a line with a SYS statement to start the code. This is easy to do on the VIC-20 and the process gives you a...   Read More

Hand Assembling to Machine Code on the Commodore VIC-20

I quite enjoy designing machine language routines on paper and then hand assembling them. For many people this would have been their only option until they got a more advanced machine language monitor...   Read More

Creating a TTY Simulator in Assembly Language on the VIC-20

The Vicmon machine language cartridge is an excellent tool for exploring the Vic-20. This article and its associated video will show you how to use it to create a simple program that will change the n...   Read More

Beginning Assembly Programming on the Commodore VIC-20

The Commodore Vic-20 is a great machine to learn an assembly language on. It was released in 1981 and was the first computer to sell one million units, which contributes to its popularity today. The ...   Read More

The Smallest Communication Program in the World?

I was going through a backup of my dos machine, taken in 1998, and came across some source code which I haven't seen for a long time. It was great to see that old code, and I must set-up a machine so ...   Read More

Sign up to get new articles straight to your inbox.

Delivered by FeedBurner

Comments

blog comments powered by Disqus