Re: Proposed Assembler Commands
- From: John Larkin <jjlarkin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 01 May 2005 13:57:14 -0700
On Sun, 1 May 2005 19:44:41 +0000 (UTC), kensmith@xxxxxxxxxxxxxxx (Ken
Smith) wrote:
>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.
>
Sounds tedious.
680x:
LDAA A
ADAA B
STAA C
PDP-11:
MOVB A, C
ADDB B, C
The PDP-11 had an elegant, symmetric, beautiful instruction set. I
haven't programmed one in decades, but I can still mentally assemble
most common instructions (into octal!)
John
.
- Follow-Ups:
- Re: Proposed Assembler Commands
- From: Ken Smith
- Re: Proposed Assembler Commands
- References:
- Re: Proposed Assembler Commands
- From: John Larkin
- Re: Proposed Assembler Commands
- From: keith
- Re: Proposed Assembler Commands
- From: John Larkin
- Re: Proposed Assembler Commands
- From: Ken Smith
- Re: Proposed Assembler Commands
- Prev by Date: Re: Court authorized wiretaps in the U.S. surged last year
- Next by Date: Re: Power regulation.
- Previous by thread: Re: Proposed Assembler Commands
- Next by thread: Re: Proposed Assembler Commands
- Index(es):
Relevant Pages
|