John Larkin said:
I always liked the Moto instruction sets. The Intel stuff has always
seemed klugey and disorganized to me. So, we all wound up with the
worst instruction set and the worst OS the industry could invent.
You've obviously never seen the RCA CDP1802's instruction set.
Imagine you have 3, 1 byte variable in memory and wish to do C = A + B
here's the code for it (If my memory is working today):
LDI low(A) .. Load the low part of an address
PLO R2 .. Put into the low part of the reg
LDI high(A) .. Same for the high byte
PHI R2
LDI low(B) .. Load the low part of an address
PLO R3 .. Put into the low part of the reg
LDI high(B) .. Same for the high byte
PHI R3
LDI low(C) .. Load the low part of an address
PLO R4 .. Put into the low part of the reg
LDI high(C) .. Same for the high byte
PHI R4
LDN R2
SEX R3
ADD
STD R4
That right folks only 16 instructions needed for that.