News for hackers. Stuff that matters.
Re:1980s computer controls Grand Rapids Public School heat a... by kens on Friday June 12, 2015 @05:21PM (#9708624)
The 6502's instruction set is pretty regular, with most instructions of the form aaabbbcc. For instance, if cc==01, aaa specifies the arithmetic operation and bbb specifies the addressing mode. Likewise with cc==01, aaa specifies the operation and bbb the address mode. See http://www.llx.com/~nparker/a2/opcodes.html

The regularity of the 6502's instruction set is a partially a consequence of using a PLA for instruction decoding. If you can decode a bunch of instructions with a simple bit pattern, it saves space.

Re:1980s computer controls Grand Rapids Public School heat a... by JoeAltmaier on Saturday June 13, 2015 @12:30AM (#9709865)
Aftger arithmetic, instructions have little or no regularity. They omit addressing modes, swap codings for modes. There's internal hardware reasons for this, but for the programmer its chaotic.