🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #625586

Re: PDP 11/40 system manual

#625586
From: Peter Flass
Date: Sun, 12 Aug 2018 11:20
20 lines
2651 bytes
Dan Espen <dan1...@gmail.com> wrote:
> I've done huge amounts of assembly programming and the instructions
> get the job done.  Issues with the base registers are easy to deal with
> once you figure out that each subroutine should have it's own base
> register, don't attempt to make all code addressible at once.
> 

My copy of Pugh is packed, but I think this was the intention. 4K can be a
bit small for a subroutine, but I think the designers expected programmers
to divide their programs into smallish subroutines. I don't think I've
written a lot of programs that needed multiple base registers. On the other
hand it's more complicated than it needs to be to save a base register and
load a new one - especially if you want to write reentrant code, where the
recommended technique requires OS intervention to get a free the savearea.
A hardware stack would have helped. and maybe one instruction to push a
register and load it with the address of the next instruction.


-- 
Pete
Technical Details
Message-ID: <767649820.555764566.888777.peter_flass-yahoo.com@news.eternal-september.org>
Path: mbox-mo1.pugleaf.net!g5-v6ni2609iti.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.cs.hut.fi!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
References: <21aaeee8-c41a-4442-a4eb-ea6a29b1e4f1@googlegroups.com> <0001HW.211B94B1040CADA5700004B5B2CF@news.giganews.com> <mdd7ekzl6pr.fsf@panix5.panix.com> <pki8ae$ca0$1@dont-email.me> <mddh8k2vyfh.fsf@panix5.panix.com> <pkmrkc$6lm$1@dont-email.me>

Show Full Headers
Complete Article Headers
X-Received: by 2002:a6b:2712:: with SMTP id n18-v6mr6233984ion.90.1534072823240;        Sun, 12 Aug 2018 04:20:23 -0700 (PDT)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 2002:a24:2c93:: with SMTP id i141-v6ls906679iti.0.gmail; Sun, 12 Aug 2018 04:20:22 -0700 (PDT)
X-Received: by 2002:a24:ac14:: with SMTP id s20-v6mr4462366ite.14.1534072822533;        Sun, 12 Aug 2018 04:20:22 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!g5-v6ni2609iti.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.cs.hut.fi!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Peter Flass <peter...@yahoo.com>
Newsgroups: alt.folklore.computers
Subject: Re: PDP 11/40 system manual
Date: Sun, 12 Aug 2018 07:20:22 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <767649820.555764566.888777.peter_flass-yahoo.com@news.eternal-september.org>
References: <21aaeee8-c41a-4442-a4eb-ea6a29b1e4f1@googlegroups.com> <0001HW.211B94B1040CADA5700004B5B2CF@news.giganews.com> <mdd7ekzl6pr.fsf@panix5.panix.com> <pki8ae$ca0$1@dont-email.me> <mddh8k2vyfh.fsf@panix5.panix.com> <pkmrkc$6lm$1@dont-email.me>
Mime-Version: 1.0
Injection-Info: reader02.eternal-september.org; posting-host="c434ae82c98b76a68e612bc442a5ce12"; logging-data="9987"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX19onOaoSEfz80wEkhLQRvCY"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:o12KBTg9uFhWbHv1FAgGFbmPl0A= sha1:Dw0HpBkbHV0t7eP7CRD+Wx8bq44=
Bytes: 2250
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit