3 ms·
It doesn’t have an alu but can do other critical arithmetic, notably increment/decrement and, crucially, indexing in the addressing unit. Also bit manipulation
by gumby 6y ago
It doesn’t have an alu but can do other critical arithmetic, notably increment/decrement and, crucially, indexing in the addressing unit. Also bit manipulation. So for a state machine that’s mostly look up tables it’s not worth building an alu.
I was surprised by the two-instruction skip — skip was still pretty common in those days, but I haven’t seen two before. I suppose it would be useful for setting a flag before branching, but I wonder how valuable it was in the end.
- kens 6y agoThe two-byte skip was typically used to skip over a jump instruction, giving you a conditional branch. But in many cases, two instructions were enough to implement the conditional case. The two-instruction skip could also be used in tricky ways to implement two entry points to a function. E.g. Entry 1: Set Accumulator bit 1 If accumulator bit 1 set, skip two instructions Entry 2: Set something different for entry 2 More setup for entry 2 Code continues for both entry 1 and entry 2
- trasz 6y agoIt’s much later, but Arm’s “IT (If-then) makes up to four following instructions conditional (known as the IT block). The conditions can all be the same, or some can be the logical inverse of others. IT is a pseudo-instruction in ARM state.”