Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Nuclear war can ruin your whole compile." -- Karl Lehenbauer


computers / alt.sys.pdp11 / Blinkenlights from user code

SubjectAuthor
* Blinkenlights from user codeJonathan Harston
+* Blinkenlights from user codeJohn Levine
|+* Blinkenlights from user codeBob Eager
||+* Blinkenlights from user codeJohn Levine
|||`- Blinkenlights from user codeJohnny Billquist
||+* Blinkenlights from user codeJohnny Billquist
|||`* Blinkenlights from user codeBob Eager
||| `- Blinkenlights from user codeBob Eager
||`* Blinkenlights from user codeDennis Boone
|| `- Blinkenlights from user codeWalter_F.J._Müller
|`- Blinkenlights from user codeJohnny Billquist
`* Blinkenlights from user codeJohnny Billquist
 `- Blinkenlights from user codeBob Eager

1
Blinkenlights from user code

<527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=860&group=alt.sys.pdp11#860

  copy link   Newsgroups: alt.sys.pdp11
X-Received: by 2002:a05:620a:2411:b0:6b9:2c07:3a2f with SMTP id d17-20020a05620a241100b006b92c073a2fmr5833583qkn.498.1659912737326;
Sun, 07 Aug 2022 15:52:17 -0700 (PDT)
X-Received: by 2002:a05:6870:f69d:b0:10d:81ea:3540 with SMTP id
el29-20020a056870f69d00b0010d81ea3540mr7722657oab.257.1659912737069; Sun, 07
Aug 2022 15:52:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.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.pdp11
Date: Sun, 7 Aug 2022 15:52:16 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=80.195.187.235; posting-account=jgPW4gkAAACE_VxPxIZ8VykZc96-9sT_
NNTP-Posting-Host: 80.195.187.235
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
Subject: Blinkenlights from user code
From: jgh@mdfs.net (Jonathan Harston)
Injection-Date: Sun, 07 Aug 2022 22:52:17 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: Jonathan Harston - Sun, 7 Aug 2022 22:52 UTC

In Unix, user code can't "see" I/O locations. Is there an API to access
the blinkenlights? V5 and V6 had the switch() call that read the
switches, but it was dropped in V7, and there's nothing that would
write to the lights. Is there any way of writing to the lights in Bell
or BSD Unix? I'd love to be able to do something like this on my
PiDP (running BSD2.11):

#include <whatever.h>
main()
{ somethingsomething(42); /* Set lights to 00101010 */
}

jgh

Re: Blinkenlights from user code

<tcpt0a$1jju$1@gal.iecc.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=861&group=alt.sys.pdp11#861

  copy link   Newsgroups: alt.sys.pdp11
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: johnl@taugh.com (John Levine)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: Mon, 8 Aug 2022 02:39:06 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <tcpt0a$1jju$1@gal.iecc.com>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
Injection-Date: Mon, 8 Aug 2022 02:39:06 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="52862"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Mon, 8 Aug 2022 02:39 UTC

It appears that Jonathan Harston <jgh@mdfs.net> said:
>In Unix, user code can't "see" I/O locations. Is there an API to access
>the blinkenlights? V5 and V6 had the switch() call that read the
>switches, but it was dropped in V7, and there's nothing that would
>write to the lights.

The lights weren't programmable on any PDP-11 I used. They showed
the PC or address register or some other internal thing.

If your emulated PDP-11 has programmable lights, it shouldn't be
very hard to write a device driver that lets you write a word
of data and puts it in the lights.

--
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: Blinkenlights from user code

<jlbvc8F5lkU5@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=862&group=alt.sys.pdp11#862

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: 8 Aug 2022 08:21:28 GMT
Lines: 29
Message-ID: <jlbvc8F5lkU5@mid.individual.net>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net wMBGsxF6NnB1d7JVrKlY0AqL5fCepCmqp4K9jpYcn0NWOqqnuH
Cancel-Lock: sha1:VGBuliyoVjDy3c1S/5fPeq95Uw8=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Mon, 8 Aug 2022 08:21 UTC

On Mon, 08 Aug 2022 02:39:06 +0000, John Levine wrote:

> It appears that Jonathan Harston <jgh@mdfs.net> said:
>>In Unix, user code can't "see" I/O locations. Is there an API to access
>>the blinkenlights? V5 and V6 had the switch() call that read the
>>switches, but it was dropped in V7, and there's nothing that would write
>>to the lights.
>
> The lights weren't programmable on any PDP-11 I used. They showed the
> PC or address register or some other internal thing.
>
> If your emulated PDP-11 has programmable lights, it shouldn't be very
> hard to write a device driver that lets you write a word of data and
> puts it in the lights.

On older PDP-11s you could write to the switch register bus address and
the value would appear on the DATA lights.

Of course, you'd need a set-user-ID program (or a device driver) to do
that.

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Blinkenlights from user code

<tcrap9$2sb2$1@gal.iecc.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=863&group=alt.sys.pdp11#863

  copy link   Newsgroups: alt.sys.pdp11
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: johnl@taugh.com (John Levine)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: Mon, 8 Aug 2022 15:40:25 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <tcrap9$2sb2$1@gal.iecc.com>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com> <tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
Injection-Date: Mon, 8 Aug 2022 15:40:25 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="94562"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com> <tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Mon, 8 Aug 2022 15:40 UTC

According to Bob Eager <news0009@eager.cx>:
>On older PDP-11s you could write to the switch register bus address and
>the value would appear on the DATA lights.

Really? I programmed 11/20, 11/45, and 11/05 quite extensively and don't recall that on any of them.

Looking at the 11/45 handbook I see the address for the switches is called switch and display register,
so it's possible that worked, but they sure didn't document it very well.

--
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: Blinkenlights from user code

<tcrjn0$oe8$1@news.misty.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=864&group=alt.sys.pdp11#864

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.h77-53-236-14.cust.a3fiber.se!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: Mon, 8 Aug 2022 20:12:46 +0200
Organization: MGT Consulting
Message-ID: <tcrjn0$oe8$1@news.misty.com>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Aug 2022 18:12:48 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="h77-53-236-14.cust.a3fiber.se:77.53.236.14";
logging-data="25032"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.12.0
Content-Language: en-US
In-Reply-To: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
 by: Johnny Billquist - Mon, 8 Aug 2022 18:12 UTC

On 2022-08-08 00:52, Jonathan Harston wrote:
> In Unix, user code can't "see" I/O locations. Is there an API to access
> the blinkenlights? V5 and V6 had the switch() call that read the
> switches, but it was dropped in V7, and there's nothing that would
> write to the lights. Is there any way of writing to the lights in Bell
> or BSD Unix? I'd love to be able to do something like this on my
> PiDP (running BSD2.11):
>
> #include <whatever.h>
> main()
> {
> somethingsomething(42); /* Set lights to 00101010 */
> }

You can do it.

There are just a few things you need to sort:
1. You need to have a recent version of 2.11BSD, in which the patch to
control the secure level have been added.
2. You need to set the secure level to 0 (I think it is) before going
multiuser, so the system do not go into a more secure mode.
3. Open /dev/kmem from your program, and read/write to the address where
the CSR for the switch register is.

If you have a secure mode you will only be able to read, and not write.

I think a few people have already written such programs, which you might
be able to find by searching for them as well.

Johnny

Re: Blinkenlights from user code

<tcrjqq$oe8$2@news.misty.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=865&group=alt.sys.pdp11#865

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.h77-53-236-14.cust.a3fiber.se!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: Mon, 8 Aug 2022 20:14:50 +0200
Organization: MGT Consulting
Message-ID: <tcrjqq$oe8$2@news.misty.com>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Aug 2022 18:14:50 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="h77-53-236-14.cust.a3fiber.se:77.53.236.14";
logging-data="25032"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.12.0
Content-Language: en-US
In-Reply-To: <tcpt0a$1jju$1@gal.iecc.com>
 by: Johnny Billquist - Mon, 8 Aug 2022 18:14 UTC

On 2022-08-08 04:39, John Levine wrote:
> It appears that Jonathan Harston <jgh@mdfs.net> said:
>> In Unix, user code can't "see" I/O locations. Is there an API to access
>> the blinkenlights? V5 and V6 had the switch() call that read the
>> switches, but it was dropped in V7, and there's nothing that would
>> write to the lights.
>
> The lights weren't programmable on any PDP-11 I used. They showed
> the PC or address register or some other internal thing.

They were on several models. But it's a question of selecting what you
display on the data lights.

In addition to the switch register, there is also the WAIT instruction,
which puts R0 on the data bus, which is also possible to see on the
front panel. However, this isn't as stable as the switch register, but
this is what most OSes used to display some kind of idle pattern.

Johnny

Re: Blinkenlights from user code

<tcrjts$oe8$3@news.misty.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=866&group=alt.sys.pdp11#866

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.h77-53-236-14.cust.a3fiber.se!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: Mon, 8 Aug 2022 20:16:28 +0200
Organization: MGT Consulting
Message-ID: <tcrjts$oe8$3@news.misty.com>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Aug 2022 18:16:28 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="h77-53-236-14.cust.a3fiber.se:77.53.236.14";
logging-data="25032"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.12.0
Content-Language: en-US
In-Reply-To: <jlbvc8F5lkU5@mid.individual.net>
 by: Johnny Billquist - Mon, 8 Aug 2022 18:16 UTC

On 2022-08-08 10:21, Bob Eager wrote:
> On Mon, 08 Aug 2022 02:39:06 +0000, John Levine wrote:
>
>> It appears that Jonathan Harston <jgh@mdfs.net> said:
>>> In Unix, user code can't "see" I/O locations. Is there an API to access
>>> the blinkenlights? V5 and V6 had the switch() call that read the
>>> switches, but it was dropped in V7, and there's nothing that would write
>>> to the lights.
>>
>> The lights weren't programmable on any PDP-11 I used. They showed the
>> PC or address register or some other internal thing.
>>
>> If your emulated PDP-11 has programmable lights, it shouldn't be very
>> hard to write a device driver that lets you write a word of data and
>> puts it in the lights.
>
> On older PDP-11s you could write to the switch register bus address and
> the value would appear on the DATA lights.

If you selected to show the display register on the data lights, yes.

> Of course, you'd need a set-user-ID program (or a device driver) to do
> that.

If we talk Unix. Under RT-11, it's very straight forward. Under RSX you
need to have your program privileged/mapped to the I/O page. Under
RSTS/E I have no idea...

Johnny

Re: Blinkenlights from user code

<tcrk10$oe8$4@news.misty.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=867&group=alt.sys.pdp11#867

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.h77-53-236-14.cust.a3fiber.se!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: Mon, 8 Aug 2022 20:18:08 +0200
Organization: MGT Consulting
Message-ID: <tcrk10$oe8$4@news.misty.com>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
<tcrap9$2sb2$1@gal.iecc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Aug 2022 18:18:08 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="h77-53-236-14.cust.a3fiber.se:77.53.236.14";
logging-data="25032"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.12.0
Content-Language: en-US
In-Reply-To: <tcrap9$2sb2$1@gal.iecc.com>
 by: Johnny Billquist - Mon, 8 Aug 2022 18:18 UTC

On 2022-08-08 17:40, John Levine wrote:
> According to Bob Eager <news0009@eager.cx>:
>> On older PDP-11s you could write to the switch register bus address and
>> the value would appear on the DATA lights.
>
> Really? I programmed 11/20, 11/45, and 11/05 quite extensively and don't recall that on any of them.

The 11/45 definitely had this. Not sure about the other two models.
Suspect the 11/05 did not, and the 11/20 I cannot remember at all how it
was.

> Looking at the 11/45 handbook I see the address for the switches is called switch and display register,
> so it's possible that worked, but they sure didn't document it very well.

Not much to document. If you look in the handbook on the front panel
operation you find the additional details apart from the switch/display
register as such.

Johnny

Re: Blinkenlights from user code

<jldc7lF5lkU7@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=868&group=alt.sys.pdp11#868

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: 8 Aug 2022 21:07:01 GMT
Lines: 26
Message-ID: <jldc7lF5lkU7@mid.individual.net>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
<tcrjts$oe8$3@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net YGcNfs7zey9A6KHNTLoBow9IFXPRsbSe+cIVtm8dNOfcOn4/Bo
Cancel-Lock: sha1:g66nxJ9qwaf9lpA2qpwL+pOoUgc=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Mon, 8 Aug 2022 21:07 UTC

On Mon, 08 Aug 2022 20:16:28 +0200, Johnny Billquist wrote:

> On 2022-08-08 10:21, Bob Eager wrote:

>> On older PDP-11s you could write to the switch register bus address and
>> the value would appear on the DATA lights.
>
> If you selected to show the display register on the data lights, yes.
>
>> Of course, you'd need a set-user-ID program (or a device driver) to do
>> that.
>
> If we talk Unix. Under RT-11, it's very straight forward. Under RSX you
> need to have your program privileged/mapped to the I/O page. Under
> RSTS/E I have no idea...

The original question was about 2.9BSD.

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Blinkenlights from user code

<jldca9F5lkU8@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=869&group=alt.sys.pdp11#869

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: 8 Aug 2022 21:08:25 GMT
Lines: 13
Message-ID: <jldca9F5lkU8@mid.individual.net>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcrjn0$oe8$1@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 3qdt+7o7dMH7U5+romJNQgIJhqP4ZQMAnHxkkew7e2ts6n0nIj
Cancel-Lock: sha1:Eg/YIaVbA+soxc6ntYVI2qqAjwY=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Mon, 8 Aug 2022 21:08 UTC

On Mon, 08 Aug 2022 20:12:46 +0200, Johnny Billquist wrote:

> 3. Open /dev/kmem from your program, and read/write to the address where
> the CSR for the switch register is.

Which requires a set-user-id program, or running as root (unless you
choose to let all users write to kernel memory).

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Blinkenlights from user code

<jlddfjF5lkU9@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=870&group=alt.sys.pdp11#870

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news0009@eager.cx (Bob Eager)
Newsgroups: alt.sys.pdp11
Subject: Re: Blinkenlights from user code
Date: 8 Aug 2022 21:28:19 GMT
Lines: 27
Message-ID: <jlddfjF5lkU9@mid.individual.net>
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
<tcrjts$oe8$3@news.misty.com> <jldc7lF5lkU7@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 2zRhX+0gp8VZ2wfPh034ZAymK08INyUBbZmbslYgJqqjTebqBf
Cancel-Lock: sha1:tHQZE7YNLcmqlYYu27nqEnwF+oA=
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
 by: Bob Eager - Mon, 8 Aug 2022 21:28 UTC

On Mon, 08 Aug 2022 21:07:01 +0000, Bob Eager wrote:

> On Mon, 08 Aug 2022 20:16:28 +0200, Johnny Billquist wrote:
>
>> On 2022-08-08 10:21, Bob Eager wrote:
>
>>> On older PDP-11s you could write to the switch register bus address
>>> and the value would appear on the DATA lights.
>>
>> If you selected to show the display register on the data lights, yes.
>>
>>> Of course, you'd need a set-user-ID program (or a device driver) to do
>>> that.
>>
>> If we talk Unix. Under RT-11, it's very straight forward. Under RSX you
>> need to have your program privileged/mapped to the I/O page. Under
>> RSTS/E I have no idea...
>
> The original question was about 2.9BSD.

Sorry, 2.11BSD.

--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Re: Blinkenlights from user code

<-YadnYgIIfM7Nmz_nZ2dnUU7-bOdnZ2d@giganews.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=871&group=alt.sys.pdp11#871

  copy link   Newsgroups: alt.sys.pdp11
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 08 Aug 2022 19:34:46 -0500
Sender: Dennis Boone <drb@yagi.h-net.org>
From: drb@ihatespam.msu.edu (Dennis Boone)
Subject: Re: Blinkenlights from user code
Newsgroups: alt.sys.pdp11
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com> <tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net>
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <-YadnYgIIfM7Nmz_nZ2dnUU7-bOdnZ2d@giganews.com>
Date: Mon, 08 Aug 2022 19:34:46 -0500
Lines: 7
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-adn+rNz0yeLNe4Ij8plHeJgFEjf7HRA7j8SLZhrU/mBWXeurdS3XOze3AeoeKhG1pnK9Fz5o48mONt0!jc90XzkxBVAxygEd5puU8M5lDd19rkYOcjbM/OX4T8kLcjAD5+v5WuAC8zykanwAstqMhsg=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1340
 by: Dennis Boone - Tue, 9 Aug 2022 00:34 UTC

> On older PDP-11s you could write to the switch register bus address and
> the value would appear on the DATA lights.

Some DEC operating systems had a light pattern they moved around in
the lights from the backstop process.

De

Re: Blinkenlights from user code

<da0ee999-e804-440f-a399-2c5d0fc4ddb3n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=872&group=alt.sys.pdp11#872

  copy link   Newsgroups: alt.sys.pdp11
X-Received: by 2002:a37:b983:0:b0:6b8:ddba:f27e with SMTP id j125-20020a37b983000000b006b8ddbaf27emr16382748qkf.774.1660034357119;
Tue, 09 Aug 2022 01:39:17 -0700 (PDT)
X-Received: by 2002:a05:6870:f706:b0:113:665a:b15b with SMTP id
ej6-20020a056870f70600b00113665ab15bmr7717839oab.293.1660034356792; Tue, 09
Aug 2022 01:39:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.sys.pdp11
Date: Tue, 9 Aug 2022 01:39:16 -0700 (PDT)
In-Reply-To: <-YadnYgIIfM7Nmz_nZ2dnUU7-bOdnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:e6:f12:9700:f578:4dde:aaa4:3f66;
posting-account=bxzfyQoAAABDBdOPzrZfAXRIKSRXmQdP
NNTP-Posting-Host: 2003:e6:f12:9700:f578:4dde:aaa4:3f66
References: <527aabda-abd5-413f-8876-7bbc234bcc08n@googlegroups.com>
<tcpt0a$1jju$1@gal.iecc.com> <jlbvc8F5lkU5@mid.individual.net> <-YadnYgIIfM7Nmz_nZ2dnUU7-bOdnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da0ee999-e804-440f-a399-2c5d0fc4ddb3n@googlegroups.com>
Subject: Re: Blinkenlights from user code
From: wfjm.andro@gmail.com (Walter F.J. Müller)
Injection-Date: Tue, 09 Aug 2022 08:39:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2342
 by: Walter F.J. Müller - Tue, 9 Aug 2022 08:39 UTC

On Tuesday, August 9, 2022 at 2:34:52 AM UTC+2, Dennis Boone wrote:
> Some DEC operating systems had a light pattern they moved around in
> the lights from the backstop process.

What is displayed on a 11/45 or 11/70 console on the data lights can be controlled via a rotary switch. The display register is one option, and that register can be written by any code with access to the I/O page. The data path is another option. And here the WAIT instruction comes in, as Johnny already mentioned. WAIT loads R0 into the internal machine register which is displayed in this case before it waits for an interrupt. That is used by the idle task on DEC and BSD operating systems and causes the typical look. The code for 2.11BSD is for example in
https://www.retro11.de/ouxr/211bsd/usr/src/sys/pdp/mch_xxx.s.html#s:_idle

A stand-alone program which shows all kinds of patterns is under
https://github.com/wfjm/w11/blob/master/tools/mcode/sys/blink.mac

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor