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.