Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

An authority is a person who can tell you more about something than you really care to know.


computers / alt.sys.pdp10 / Re: Moving negative value to accumulator

SubjectAuthor
* Moving negative value to accumulatorDavid Meyer
+* Re: Moving negative value to accumulatorJohn Levine
|`* Re: Moving negative value to accumulatorLars Brinkhoff
| `* Re: Moving negative value to accumulatorRich Alderson
|  `* Re: Moving negative value to accumulatorfishtoprecords
|   `* Re: Moving negative value to accumulatorRich Alderson
|    +* Re: Moving negative value to accumulatorkgxxx10@yahoo.com
|    |`* Re: Moving negative value to accumulatorRich Alderson
|    | +- Re: Moving negative value to accumulatorfishtoprecords
|    | `* Re: Moving negative value to accumulatorgah4
|    |  `* Re: Moving negative value to accumulatorkgxxx10@yahoo.com
|    |   `- Re: Moving negative value to accumulatorgah4
|    `- Re: Moving negative value to accumulatorfishtoprecords
`- Re: Moving negative value to accumulatorRich Alderson

1
Moving negative value to accumulator

<b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=538&group=alt.sys.pdp10#538

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:620a:370d:: with SMTP id de13mr13395885qkb.229.1643085259317;
Mon, 24 Jan 2022 20:34:19 -0800 (PST)
X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr10402502otr.336.1643085259086;
Mon, 24 Jan 2022 20:34:19 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Mon, 24 Jan 2022 20:34:18 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2405:6587:8660:4300:885f:9427:d77a:5812;
posting-account=485jAQgAAAAKoGRdVIhqCU-bWCWLTuIq
NNTP-Posting-Host: 2405:6587:8660:4300:885f:9427:d77a:5812
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
Subject: Moving negative value to accumulator
From: papasc...@gmail.com (David Meyer)
Injection-Date: Tue, 25 Jan 2022 04:34:19 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: David Meyer - Tue, 25 Jan 2022 04:34 UTC

I'm working my way through Ralph Gorin's "Intorduction to DECSYSTEM-20 Assembly Language Programming". For one of the exercises I wanted to initialize an accumulator to a negative integer value. My first try was an assembly instruction like:

MOVEI 10,-6 ;Move -6 to accumulator 10

However, when the program runs, the contents of the accumulator are not treated like a negative number, and DDT shows the contents of accumulator 10 to be 777772.

Next I tried:

MOVNI 10,6 ;Negate 6 and move result to accumulator 10

Which gets treated like a negative number as expected. DDT shows the contents of the accumulator after the above instruction to be -6 (777777,,777772).

I couldn't find an explanation for this in the Gorin text, but think I have figured out what is going on with the MOVEI instruction:

1. The assembler sees "-6" in the program source and interprets it as a 36-bit (one word) twos-complement integer value, 777777,,777772.
2. Based on where the "-6" appears in the instruction syntax, the value is assigned to the instruction's address field Y.
3. Since the Y field is only 18-bits long, the value's upper half-word is truncated, and the value actually assigned to the Y field is 777772.
4. MOVEI takes the Y value and assigns it to the accumulator.
5. Since the accumulator is a 36-bit word and the value of Y is only 18-bits, the upper half-word of the accumulator is set to 0, making the contents of the accumulator 0,,777772, which is not the same as -6 (777777,,777772).

On the other hand, MOVNI takes positive 6, negates it (777777,,777772), then puts that value in the accumulator like I wanted.

Have I got it figured out, or is something else going on? (I'm working on twenex.org TOPS-20.)

Re: Moving negative value to accumulator

<sso03j$106o$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=539&group=alt.sys.pdp10#539

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: alt.sys.pdp10
Subject: Re: Moving negative value to accumulator
Date: Tue, 25 Jan 2022 04:59:31 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <sso03j$106o$1@gal.iecc.com>
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
Injection-Date: Tue, 25 Jan 2022 04:59:31 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="32984"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Tue, 25 Jan 2022 04:59 UTC

According to David Meyer <papascave@gmail.com>:
> MOVEI 10,-6 ;Move -6 to accumulator 10 doesn't work
>
> MOVNI 10,6 ;Negate 6 and move result to accumulator 10 does work

>5. Since the accumulator is a 36-bit word and the value of Y is only 18-bits, the upper half-word of the accumulator is set to 0, making the contents of the accumulator 0,,777772, which is not the same as -6 (777777,,777772).
>
>On the other hand, MOVNI takes positive 6, negates it (777777,,777772), then puts that value in the accumulator like I wanted.

That is correct. One of the fun things about the PDP-10 is that there are at least three ways to do anything,
so this will also work

HRROI 10,-6

That's half right to right ones immediate, which puts the immediate
777772 in the low half, and sets the high half to ones to make it a
proper negative number.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: Moving negative value to accumulator

<7wlez4ugbt.fsf@junk.nocrew.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=540&group=alt.sys.pdp10#540

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: lars.s...@nocrew.org (Lars Brinkhoff)
Newsgroups: alt.sys.pdp10
Subject: Re: Moving negative value to accumulator
Organization: nocrew
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com>
Date: Tue, 25 Jan 2022 12:53:42 +0000
Message-ID: <7wlez4ugbt.fsf@junk.nocrew.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cancel-Lock: sha1:jvJ0F1PPU8mtHpklIAROzud7H4M=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 3
NNTP-Posting-Host: a9f31852.news.sunsite.dk
X-Trace: 1643115222 news.sunsite.dk 702 lars@junk.nocrew.org/51.15.56.219:51700
X-Complaints-To: staff@sunsite.dk
 by: Lars Brinkhoff - Tue, 25 Jan 2022 12:53 UTC

This will sign-extend any 18-bit number:

HRREI 10,NUMBER

Re: Moving negative value to accumulator

<mdda6fj4ju7.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=542&group=alt.sys.pdp10#542

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: alt.sys.pdp10
Subject: Re: Moving negative value to accumulator
Date: 25 Jan 2022 15:54:40 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 58
Sender: alderson+news@panix5.panix.com
Message-ID: <mdda6fj4ju7.fsf@panix5.panix.com>
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="18768"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Tue, 25 Jan 2022 20:54 UTC

David Meyer <papascave@gmail.com> writes:

> I'm working my way through Ralph Gorin's "Intorduction to DECSYSTEM-20
> Assembly Language Programming". For one of the exercises I wanted to
> initialize an accumulator to a negative integer value. My first try was an
> assembly instruction like:

> MOVEI 10,-6 ;Move -6 to accumulator 10

> However, when the program runs, the contents of the accumulator are not
> treated like a negative number, and DDT shows the contents of accumulator 10
> to be 777772.

> Next I tried:

> MOVNI 10,6 ;Negate 6 and move result to accumulator 10

> Which gets treated like a negative number as expected. DDT shows the contents
> of the accumulator after the above instruction to be -6 (777777,,777772).

> I couldn't find an explanation for this in the Gorin text, but think I have
> figured out what is going on with the MOVEI instruction:

Ralph's book assumes that the reader/student has access to the PDP-10 Hardware
Reference Manual, which explains this in gory detail.

> 1. The assembler sees "-6" in the program source and interprets it as a
> 36-bit (one word) twos-complement integer value, 777777,,777772.
> 2. Based on where the "-6" appears in the instruction syntax, the value is
> assigned to the instruction's address field Y.
> 3. Since the Y field is only 18-bits long, the value's upper half-word is
> truncated, and the value actually assigned to the Y field is 777772.
> 4. MOVEI takes the Y value and assigns it to the accumulator.
> 5. Since the accumulator is a 36-bit word and the value of Y is only 18-bits,
> the upper half-word of the accumulator is set to 0, making the contents of
> the accumulator 0,,777772, which is not the same as -6 (777777,,777772).

> On the other hand, MOVNI takes positive 6, negates it (777777,,777772), then
> puts that value in the accumulator like I wanted.

> Have I got it figured out, or is something else going on? (I'm working on
> twenex.org TOPS-20.)

Yes, you've figured it out, but using the HRM would have been a lot simpler.

http://bitsavers.org/pdf/dec/pdp10/1982_ProcRefMan.pdf

You should also have access to the Macro reference manual.

http://bitsavers.org/pdf/dec/pdp10/TOPS20/AA-4159C-TM_Macro_Assembler_Reference_Apr78.pdf

Have fun!

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: Moving negative value to accumulator

<mdd7dan4jrp.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=543&group=alt.sys.pdp10#543

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: alt.sys.pdp10
Subject: Re: Moving negative value to accumulator
Date: 25 Jan 2022 15:56:10 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 13
Sender: alderson+news@panix5.panix.com
Message-ID: <mdd7dan4jrp.fsf@panix5.panix.com>
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com> <sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="18768"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Tue, 25 Jan 2022 20:56 UTC

Lars Brinkhoff <lars.spam@nocrew.org> writes:

> This will sign-extend any 18-bit number:

> HRREI 10,NUMBER

As Larry Wall likes to claim about perl, There's More Than One Way To Do It.

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: Moving negative value to accumulator

<71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=547&group=alt.sys.pdp10#547

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:622a:1a28:: with SMTP id f40mr12428106qtb.391.1643149549194;
Tue, 25 Jan 2022 14:25:49 -0800 (PST)
X-Received: by 2002:a05:6808:3090:: with SMTP id bl16mr1951229oib.296.1643149548858;
Tue, 25 Jan 2022 14:25:48 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Tue, 25 Jan 2022 14:25:48 -0800 (PST)
In-Reply-To: <mdd7dan4jrp.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=74.103.149.104; posting-account=5pAuXwkAAADYxu_vHG_N6x8Gdf1I-9kI
NNTP-Posting-Host: 74.103.149.104
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org> <mdd7dan4jrp.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: pat22...@gmail.com (fishtoprecords)
Injection-Date: Tue, 25 Jan 2022 22:25:49 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
 by: fishtoprecords - Tue, 25 Jan 2022 22:25 UTC

With the later versions of Macro and the tops-20 macros, you could use
MOVEX 10,-6

The MOVEX macro will determine the size of the value, and use the proper instruction
to do it all magically.

Re: Moving negative value to accumulator

<mddsfta409m.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=548&group=alt.sys.pdp10#548

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: alt.sys.pdp10
Subject: Re: Moving negative value to accumulator
Date: 26 Jan 2022 17:09:41 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 22
Sender: alderson+news@panix5.panix.com
Message-ID: <mddsfta409m.fsf@panix5.panix.com>
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com> <sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org> <mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="26434"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Wed, 26 Jan 2022 22:09 UTC

fishtoprecords <pat22043@gmail.com> writes:

> With the later versions of Macro and the tops-20 macros, you could use
> MOVEX 10,-6

> The MOVEX macro will determine the size of the value, and use the proper
> instruction to do it all magically.

The macro is actually named MOVX, and in this particular use case generates

HRROI 10,-6

(NB: I just tested this out live on a Toad-2.)

To use the macro, include the line "SEARCH MACSYM" after the TITLE statement in
your program.

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: Moving negative value to accumulator

<f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=549&group=alt.sys.pdp10#549

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:6214:f07:: with SMTP id gw7mr831496qvb.77.1643245587633;
Wed, 26 Jan 2022 17:06:27 -0800 (PST)
X-Received: by 2002:a4a:c3c9:: with SMTP id e9mr833652ooq.57.1643245587349;
Wed, 26 Jan 2022 17:06:27 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Wed, 26 Jan 2022 17:06:27 -0800 (PST)
In-Reply-To: <mddsfta409m.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=96.10.254.78; posting-account=805hjAoAAAB4vsCub5kHrpAymADD8UxN
NNTP-Posting-Host: 96.10.254.78
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
<mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
<mddsfta409m.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: kgxx...@yahoo.com (kgxxx10@yahoo.com)
Injection-Date: Thu, 27 Jan 2022 01:06:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 7
 by: kgxxx10@yahoo.com - Thu, 27 Jan 2022 01:06 UTC

All PDP10 instructions are of the form Operator Accumulator,(indirect)offset(index). MOVEI just moves the effective address computed into accumulator. Since this is computed to 18 bits you get zeros in the upper 18 bits. This is why MOVEI ac,-6 results in AC having 0,,-6 rather than -1,,-6 as you would expect. HRREI ac,-6 is probably the fastest. MOVNI has the extra step of negating the value of ea.

Rich

Re: Moving negative value to accumulator

<mddczkcu3rg.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=550&group=alt.sys.pdp10#550

  copy link   Newsgroups: alt.sys.pdp10
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: new...@alderson.users.panix.com (Rich Alderson)
Newsgroups: alt.sys.pdp10
Subject: Re: Moving negative value to accumulator
Date: 27 Jan 2022 19:01:55 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 18
Sender: alderson+news@panix5.panix.com
Message-ID: <mddczkcu3rg.fsf@panix5.panix.com>
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com> <sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org> <mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com> <mddsfta409m.fsf@panix5.panix.com> <f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="9658"; mail-complaints-to="abuse@panix.com"
X-Newsreader: Gnus v5.7/Emacs 22.3
 by: Rich Alderson - Fri, 28 Jan 2022 00:01 UTC

"kgxxx10@yahoo.com" <kgxxx10@yahoo.com> writes:

> All PDP10 instructions are of the form Operator Accumulator,(indirect)offset(index).
> MOVEI just moves the effective address computed into accumulator. Since this
> is computed to 18 bits you get zeros in the upper 18 bits. This is why MOVEI
> ac,-6 results in AC having 0,,-6 rather than -1,,-6 as you would expect.
> HRREI ac,-6 is probably the fastest. MOVNI has the extra step of negating
> the value of ea.

Actually, HRROI is faster than HRREI because it simply sets the left half to -1
(all 1 bits), while "extend the sign" requires the testing of the sign bit of
the right halfword before setting the left half appropriately.

--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen

Re: Moving negative value to accumulator

<01a68eed-f05c-45e4-aa6d-195fa8b02fc7n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=551&group=alt.sys.pdp10#551

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:620a:128c:: with SMTP id w12mr4400791qki.464.1643329535265;
Thu, 27 Jan 2022 16:25:35 -0800 (PST)
X-Received: by 2002:a05:6830:16ce:: with SMTP id l14mr3611542otr.153.1643329534951;
Thu, 27 Jan 2022 16:25:34 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Thu, 27 Jan 2022 16:25:34 -0800 (PST)
In-Reply-To: <mddsfta409m.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=74.103.149.104; posting-account=5pAuXwkAAADYxu_vHG_N6x8Gdf1I-9kI
NNTP-Posting-Host: 74.103.149.104
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
<mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
<mddsfta409m.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <01a68eed-f05c-45e4-aa6d-195fa8b02fc7n@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: pat22...@gmail.com (fishtoprecords)
Injection-Date: Fri, 28 Jan 2022 00:25:35 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: fishtoprecords - Fri, 28 Jan 2022 00:25 UTC

On Wednesday, January 26, 2022 at 5:09:42 PM UTC-5, Rich Alderson wrote:
> fishtoprecords <pat2...@gmail.com> writes:
>
> > With the later versions of Macro and the tops-20 macros, you could use
> > MOVEX 10,-6
>
> > The MOVEX macro will determine the size of the value, and use the proper
> > instruction to do it all magically.
> The macro is actually named MOVX, and in this particular use case generates

Thanks, I was going from memory that is a few decades old.

Re: Moving negative value to accumulator

<c540240a-0b08-4393-8095-0d5ba9fa1a8cn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=552&group=alt.sys.pdp10#552

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:620a:430e:: with SMTP id u14mr4416954qko.561.1643329646485;
Thu, 27 Jan 2022 16:27:26 -0800 (PST)
X-Received: by 2002:a05:6830:144d:: with SMTP id w13mr3568685otp.329.1643329646195;
Thu, 27 Jan 2022 16:27:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!5.161.45.24.MISMATCH!2.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Thu, 27 Jan 2022 16:27:26 -0800 (PST)
In-Reply-To: <mddczkcu3rg.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=74.103.149.104; posting-account=5pAuXwkAAADYxu_vHG_N6x8Gdf1I-9kI
NNTP-Posting-Host: 74.103.149.104
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
<mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
<mddsfta409m.fsf@panix5.panix.com> <f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>
<mddczkcu3rg.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c540240a-0b08-4393-8095-0d5ba9fa1a8cn@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: pat22...@gmail.com (fishtoprecords)
Injection-Date: Fri, 28 Jan 2022 00:27:26 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: fishtoprecords - Fri, 28 Jan 2022 00:27 UTC

On Thursday, January 27, 2022 at 7:01:59 PM UTC-5, Rich Alderson wrote:
> Actually, HRROI is faster than HRREI because it simply sets the left half to -1
> (all 1 bits), while "extend the sign" requires the testing of the sign bit of
> the right halfword before setting the left half appropriately.

There were two cool things that using the MOVX macro gave you:
1) it would automatically pick the fastest equivalent instruction
2) it would do the right thing based on the value, which can require thinking if you are turning on a bunch of flags
or other constants that are not readily at hand.

Re: Moving negative value to accumulator

<2288f0f9-4f69-43af-8d53-01cd3bf75c6fn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=553&group=alt.sys.pdp10#553

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a05:6214:20ad:: with SMTP id 13mr5040667qvd.40.1643331140258;
Thu, 27 Jan 2022 16:52:20 -0800 (PST)
X-Received: by 2002:a9d:7214:: with SMTP id u20mr3461970otj.138.1643331139944;
Thu, 27 Jan 2022 16:52:19 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Thu, 27 Jan 2022 16:52:19 -0800 (PST)
In-Reply-To: <mddczkcu3rg.fsf@panix5.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:28e7:cc33:a3a3:6d09;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:28e7:cc33:a3a3:6d09
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
<mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
<mddsfta409m.fsf@panix5.panix.com> <f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>
<mddczkcu3rg.fsf@panix5.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2288f0f9-4f69-43af-8d53-01cd3bf75c6fn@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: gah...@u.washington.edu (gah4)
Injection-Date: Fri, 28 Jan 2022 00:52:20 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 23
 by: gah4 - Fri, 28 Jan 2022 00:52 UTC

On Thursday, January 27, 2022 at 4:01:59 PM UTC-8, Rich Alderson wrote:

(snip)

> Actually, HRROI is faster than HRREI because it simply sets the left half to -1
> (all 1 bits), while "extend the sign" requires the testing of the sign bit of
> the right halfword before setting the left half appropriately.

For most processors, it is hard to make statements about the speed of
instructions based on the work done. In many cases, the designers optimized
one path as being more common, even if it looks like it should take longer.

In the case of PDP-10 instructions, I suspect you need to specify the model.
(Actually that is true for pretty much all processors, but maybe a little more
for the PDP-10.)

The KA-10 has a lot of asynchronous logic, so might be able to do some
things just a little faster. Others will need whole clock cycles. For the KA-10,
it might be slightly different for different values.

In the PDP-10 days, it was usual for manufacturers to give instruction
timing information. With pipelined processors, and various other changes,
it became much more difficult to do instruction timing, so the only way
is with reliable benchmark programs.

Re: Moving negative value to accumulator

<61193242-ae12-4177-9ba5-ce4760b41562n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=555&group=alt.sys.pdp10#555

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:a37:f919:: with SMTP id l25mr7197309qkj.768.1643411263571;
Fri, 28 Jan 2022 15:07:43 -0800 (PST)
X-Received: by 2002:a05:6808:2117:: with SMTP id r23mr7397004oiw.201.1643411263357;
Fri, 28 Jan 2022 15:07:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Fri, 28 Jan 2022 15:07:43 -0800 (PST)
In-Reply-To: <2288f0f9-4f69-43af-8d53-01cd3bf75c6fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=96.10.254.78; posting-account=805hjAoAAAB4vsCub5kHrpAymADD8UxN
NNTP-Posting-Host: 96.10.254.78
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
<mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
<mddsfta409m.fsf@panix5.panix.com> <f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>
<mddczkcu3rg.fsf@panix5.panix.com> <2288f0f9-4f69-43af-8d53-01cd3bf75c6fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61193242-ae12-4177-9ba5-ce4760b41562n@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: kgxx...@yahoo.com (kgxxx10@yahoo.com)
Injection-Date: Fri, 28 Jan 2022 23:07:43 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: kgxxx10@yahoo.com - Fri, 28 Jan 2022 23:07 UTC

On Thursday, January 27, 2022 at 7:52:20 PM UTC-5, gah4 wrote:
> On Thursday, January 27, 2022 at 4:01:59 PM UTC-8, Rich Alderson wrote:
>
> (snip)
> > Actually, HRROI is faster than HRREI because it simply sets the left half to -1
> > (all 1 bits), while "extend the sign" requires the testing of the sign bit of
> > the right halfword before setting the left half appropriately.
> For most processors, it is hard to make statements about the speed of
> instructions based on the work done. In many cases, the designers optimized
> one path as being more common, even if it looks like it should take longer.

Depending on model. On KA10, and KI10, they execute in same time. I suspect also on KL10. There is no test for the sign, the bit is just copied.

Rich

Re: Moving negative value to accumulator

<163a3d4b-dfba-4c97-ba37-c5d1b82012c9n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=556&group=alt.sys.pdp10#556

  copy link   Newsgroups: alt.sys.pdp10
X-Received: by 2002:ad4:5941:: with SMTP id eo1mr9225118qvb.50.1643426104124;
Fri, 28 Jan 2022 19:15:04 -0800 (PST)
X-Received: by 2002:a05:6830:1387:: with SMTP id d7mr6657461otq.273.1643426103844;
Fri, 28 Jan 2022 19:15:03 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp10
Date: Fri, 28 Jan 2022 19:15:03 -0800 (PST)
In-Reply-To: <61193242-ae12-4177-9ba5-ce4760b41562n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:c825:adc4:af2b:ed87;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:c825:adc4:af2b:ed87
References: <b039e78e-d46c-4aa8-a9b5-e4d983df7d6an@googlegroups.com>
<sso03j$106o$1@gal.iecc.com> <7wlez4ugbt.fsf@junk.nocrew.org>
<mdd7dan4jrp.fsf@panix5.panix.com> <71e2f168-a32c-46dd-9b88-b17641bebbben@googlegroups.com>
<mddsfta409m.fsf@panix5.panix.com> <f7ce1e96-6035-4ba1-b267-0d69decd52c8n@googlegroups.com>
<mddczkcu3rg.fsf@panix5.panix.com> <2288f0f9-4f69-43af-8d53-01cd3bf75c6fn@googlegroups.com>
<61193242-ae12-4177-9ba5-ce4760b41562n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <163a3d4b-dfba-4c97-ba37-c5d1b82012c9n@googlegroups.com>
Subject: Re: Moving negative value to accumulator
From: gah...@u.washington.edu (gah4)
Injection-Date: Sat, 29 Jan 2022 03:15:04 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: gah4 - Sat, 29 Jan 2022 03:15 UTC

On Friday, January 28, 2022 at 3:07:44 PM UTC-8, kgx...@yahoo.com wrote:

(snip, I wrote)

> > For most processors, it is hard to make statements about the speed of
> > instructions based on the work done. In many cases, the designers optimized
> > one path as being more common, even if it looks like it should take longer.

> Depending on model. On KA10, and KI10, they execute in same time.
> I suspect also on KL10. There is no test for the sign, the bit is just copied.

Yes, after I wrote that I looked up the manual. It is pretty easy to see for the KI
that all H...I instructions are the same time. It is a little harder to figure out
for the KA, but I believe so. I suspect also for the KL, as it is usually
more true on faster processors.

That leaves the KS, which I don't know about.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor