Re: Proposed Assembler Commands



In article <6sh871h65ksdq0trjpb19gurt7n0jmgdm8@xxxxxxx>,
John Larkin <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
[...]
>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.

--
--
kensmith@xxxxxxxxx forging knowledge

.



Relevant Pages

  • Re: Proposed Assembler Commands
    ... >>>worst instruction set and the worst OS the industry could invent. ... I often suspect that you haven't a clue what you're talking about. ... Load the low part of an address ... >> PHI R2 ...
    (sci.electronics.design)
  • Re: Proposed Assembler Commands
    ... >>worst instruction set and the worst OS the industry could invent. ... > LDI low.. ... Load the low part of an address ... > PHI R2 ...
    (sci.electronics.design)
  • Re: Proposed Assembler Commands
    ... >>seemed klugey and disorganized to me. ... we all wound up with the ... >>worst instruction set and the worst OS the industry could invent. ... (Decrement nnd SKip if Zero, SKip if And Zero, etc.) ...
    (sci.electronics.design)
  • Re: Proposed Assembler Commands
    ... we all wound up with the ... >>worst instruction set and the worst OS the industry could invent. ... > PHI R2 ... The PDP-11 had an elegant, symmetric, beautiful instruction set. ...
    (sci.electronics.design)