[net.micro.16k] Typo in 32000 Instruction Set Reference Manual ???

doon@sdcrdcf.UUCP (Harry W. Reed) (03/13/85)

According to the National Semiconductor 32000 Instruction Set Reference Manual
the instruction ...

		extw	r0, 0(r1), r2, 7

produces the code: 		  2E 81 40 00 07.

I say that it should be ... 	  2E 81 48 00 07.

Is this indeed a typo or am I constructing the instruction incorrectly???

Could someone please run this through a 32000 assembler and let me know what the
true encoding for extw... is?

		Harry Reed.

mikel@bmcg.UUCP (Mike Lesher) (03/14/85)

[Row, row, row your bits, gently down the stream...]

In article <> doon@sdcrdcf.UUCP (Harry W. Reed) writes:
>According to the National Semiconductor 32000 Instruction Set Reference Manual
>the instruction ...
>
>		extw	r0, 0(r1), r2, 7
>
>produces the code: 		  2E 81 40 00 07.
>
>I say that it should be ... 	  2E 81 48 00 07.
>
>Is this indeed a typo or am I constructing the instruction incorrectly???
>
>Could someone please run this through a 32000 assembler and let me know what
>the true encoding for extw... is?
>
>		Harry Reed.

Here is the direct output from the assembler:
------------------
      NSC 16032 MESA ASSEMBLER Version 3.31    9/19/83               PAGE: 1

      1  000000  2E814800                 extw    r0, 0(r1), r2, 7
                 07
------------------

You are correct, there is a typo in the manual!  If you require more
assistance, let me know.

Mike Lesher
Burroughs ASG, San Diego, CA.
(..!bmcg!mikel)

andrew@orca.UUCP (Andrew Klossner) (03/16/85)

> According to the National Semiconductor 32000 Instruction Set Reference
> Manual the instruction ...
> 
> 		extw	r0, 0(r1), r2, 7
> 
> produces the code: 		  2E 81 40 00 07.
> 
> I say that it should be ... 	  2E 81 48 00 07.
> 
> Is this indeed a typo or am I constructing the instruction
> incorrectly???
> 
> Could someone please run this through a 32000 assembler and let me know
> what the true encoding for extw... is?

I just ran this through the assembler on a Tektronix 6130 and it agrees
with you.  The manual is in error.

  -- Andrew Klossner   (decvax!tektronix!orca!andrew)       [UUCP]
                       (orca!andrew.tektronix@csnet-relay)  [ARPA]