Re:1980s computer controls Grand Rapids Public School heat a...
by JoeAltmaier on Friday June 12, 2015 @02:12PM
(#9707599)
Just look at the 6502. No two instructions follow the same pattern - every one is a moss-covered three-handled family credenza, to quote the good Doctor.
[ Parent
| on HN ]
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.
Re:1980s computer controls Grand Rapids Public School heat a...
by evilduck on Friday June 12, 2015 @03:30PM
(#9708050)
Not that it's in the least bit relevant to the discussion, but the moss-covered three-handled family credenza is not a Dr. Seuss quote found anywhere in his books, it came from the 70's era 'Cat in the Hat' TV adaptation, authored by Chuck Jones.
Re:1980s computer controls Grand Rapids Public School heat a...
by JoeAltmaier on Friday June 12, 2015 @04:09PM
(#9708230)
Cool! I never knew. I guess it shouldn't be considered 'canon' then.
Re:1980s computer controls Grand Rapids Public School heat a...
by vidarh on Friday June 12, 2015 @08:37PM
(#9709378)
That's just not true. It has irregularities, but most of the instructions fit into a small set of groups that follow very simple patterns.
But secondly, where the 6502 deviates from a tiny set of regular patterns it is largely by omitting specific forms of instructions, either because the variation would make no sense, or to save space - the beauty of the 6502 is how simple it is:
You can fit the 6502 instruction set on a single sheet of paper with sufficient detail that someone with some asm exposure could understand most of it.
Re:1980s computer controls Grand Rapids Public School heat a...
by pkaye on Friday June 12, 2015 @03:24PM
(#9708018)
The x86 family is the same.
Re:1980s computer controls Grand Rapids Public School heat a...
by JoeAltmaier on Friday June 12, 2015 @03:31PM
(#9708052)
Oh there is quite a lot of consistency in the structure of instructions across the basic set - register numbering, many instructions allow full register and addressing modes. The 6502 had pretty much no two instructions the same.