[Simh] RT-11 source

2016-10-22 Thread Ray Jewhurst
I know that RT-11 is under license from Mentec but is there a way to get
the sources for it?  I would like preferably v5.3.  I have an idea for
project to teach my self rudimentary OS design and I would like to use
RT-11 as an example since PDP-11 assembly is the only assembly I know and I
am already comfortable with RT-11.

Thanks

Ray
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Johnny Billquist

On 2016-10-22 16:44, Ray Jewhurst wrote:

I know that RT-11 is under license from Mentec but is there a way to get
the sources for it?  I would like preferably v5.3.  I have an idea for
project to teach my self rudimentary OS design and I would like to use
RT-11 as an example since PDP-11 assembly is the only assembly I know
and I am already comfortable with RT-11.


Unless I'm confused, RT-11 already comes with some sources, but they are 
stripped of comments.


Also, as an OS, it is rather rudimentary. And the code is sometimes not 
that easy to follow, since they have used a lot of tricks to squeeze the 
most functionality with the minimal amount of memory use.


Johnny

--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Al Kossow


On 10/22/16 7:44 AM, Ray Jewhurst wrote:
> I have an idea for project to teach my self rudimentary OS design and I would 
> like to use RT-11 as an example
>

Did anyone ever port MINIX to the PDP-11?


___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Paul Koning

> On Oct 22, 2016, at 10:44 AM, Ray Jewhurst  wrote:
> 
> I know that RT-11 is under license from Mentec but is there a way to get the 
> sources for it?  I would like preferably v5.3.  I have an idea for project to 
> teach my self rudimentary OS design and I would like to use RT-11 as an 
> example since PDP-11 assembly is the only assembly I know and I am already 
> comfortable with RT-11.

I've always liked RT-11 FB, which is an entirely different design than the 
older SJ monitor.  Partly it's because its author was my college mentor, and 
one of the very best programmers I've ever met in over 40 years.

Unfortunately the stripped (no comments) sources omit the literary quotes he 
liked to sprinkle all over the RT-11 sources.  For example "A source of 
innocent merriment -- The Mikado" in the idle loop (the lights pattern code).

paul


___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Ray Jewhurst
I know some of the code is already there but I need comments since I am not
an expert or even a real advanced programmer in assembly. Also, the beauty
of running a simulator is that hardware resources are not as much of a
problem so I more to fill in the gaps for the stuff I am unsure of. My
personal assembly "bible " covers some systems programming but not all. I
will have to share the title of the book when I am near it. It is available
on Amazon. What my plans are is to make a simple OS with a dual command set
using both the RT-11 command line interface and RSX style DCL. Just
something fun to play with

On Oct 22, 2016 11:58 AM, "Johnny Billquist"  wrote:

> On 2016-10-22 16:44, Ray Jewhurst wrote:
>
>> I know that RT-11 is under license from Mentec but is there a way to get
>> the sources for it?  I would like preferably v5.3.  I have an idea for
>> project to teach my self rudimentary OS design and I would like to use
>> RT-11 as an example since PDP-11 assembly is the only assembly I know
>> and I am already comfortable with RT-11.
>>
>
> Unless I'm confused, RT-11 already comes with some sources, but they are
> stripped of comments.
>
> Also, as an OS, it is rather rudimentary. And the code is sometimes not
> that easy to follow, since they have used a lot of tricks to squeeze the
> most functionality with the minimal amount of memory use.
>
> Johnny
>
> --
> Johnny Billquist  || "I'm on a bus
>   ||  on a psychedelic trip
> email: b...@softjar.se ||  Reading murder books
> pdp is alive! ||  tryin' to stay hip" - B. Idol
> ___
> Simh mailing list
> Simh@trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Cory Smelosky
Are the comments in the source on the hidden trailing edge archives?

Sent from my iPhone

> On Oct 22, 2016, at 11:15, Paul Koning  wrote:
> 
> 
>> On Oct 22, 2016, at 10:44 AM, Ray Jewhurst  wrote:
>> 
>> I know that RT-11 is under license from Mentec but is there a way to get the 
>> sources for it?  I would like preferably v5.3.  I have an idea for project 
>> to teach my self rudimentary OS design and I would like to use RT-11 as an 
>> example since PDP-11 assembly is the only assembly I know and I am already 
>> comfortable with RT-11.
> 
> I've always liked RT-11 FB, which is an entirely different design than the 
> older SJ monitor.  Partly it's because its author was my college mentor, and 
> one of the very best programmers I've ever met in over 40 years.
> 
> Unfortunately the stripped (no comments) sources omit the literary quotes he 
> liked to sprinkle all over the RT-11 sources.  For example "A source of 
> innocent merriment -- The Mikado" in the idle loop (the lights pattern code).
> 
>paul
> 
> 
> ___
> Simh mailing list
> Simh@trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh

___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Clem Cole
Ray,

I think a much better place to start is John Lion's “A commentary on the
Sixth Edition UNIX Operating System
”
- available for download at: Grog's Lions web page
 or purchase a copy at:  Amazon
- Lions book
   This is
for the PDP-11, will run on simh just fine, all the sources, comments et al
are all there.  The Lion's text is an clean, interesting, and accessible
piece of work.

What is even more cool in my opinion is  we can also point you to the MIT
Undergrad course from the fall of 2014 called: Operating Systems
Engineering [aka MIT's 6.828].

All of docs and code are downloadable to read and work.  The course is a
modern redux on
​the same​
 Lion's book from the late 1970s
​ for 40 years later and fresh​
.The new MIT version is also, as someone else called it "a modern take
on a classic" the URL:   6.828 / Fall 2014


The latest xv6 source is available via
git clone git://pdos.csail.mit.edu/xv6/xv6.git


On Sat, Oct 22, 2016 at 1:21 PM, Ray Jewhurst 
wrote:

> I know some of the code is already there but I need comments since I am
> not an expert or even a real advanced programmer in assembly. Also, the
> beauty of running a simulator is that hardware resources are not as much of
> a problem so I more to fill in the gaps for the stuff I am unsure of. My
> personal assembly "bible " covers some systems programming but not all. I
> will have to share the title of the book when I am near it. It is available
> on Amazon. What my plans are is to make a simple OS with a dual command set
> using both the RT-11 command line interface and RSX style DCL. Just
> something fun to play with
>
> On Oct 22, 2016 11:58 AM, "Johnny Billquist"  wrote:
>
>> On 2016-10-22 16:44, Ray Jewhurst wrote:
>>
>>> I know that RT-11 is under license from Mentec but is there a way to get
>>> the sources for it?  I would like preferably v5.3.  I have an idea for
>>> project to teach my self rudimentary OS design and I would like to use
>>> RT-11 as an example since PDP-11 assembly is the only assembly I know
>>> and I am already comfortable with RT-11.
>>>
>>
>> Unless I'm confused, RT-11 already comes with some sources, but they are
>> stripped of comments.
>>
>> Also, as an OS, it is rather rudimentary. And the code is sometimes not
>> that easy to follow, since they have used a lot of tricks to squeeze the
>> most functionality with the minimal amount of memory use.
>>
>> Johnny
>>
>> --
>> Johnny Billquist  || "I'm on a bus
>>   ||  on a psychedelic trip
>> email: b...@softjar.se ||  Reading murder books
>> pdp is alive! ||  tryin' to stay hip" - B. Idol
>> ___
>> Simh mailing list
>> Simh@trailing-edge.com
>> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
>
> ___
> Simh mailing list
> Simh@trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Johnny Billquist

On 2016-10-22 21:44, Cory Smelosky wrote:

Are the comments in the source on the hidden trailing edge archives?


Don't think so. As far as I know, Tim only have access to the same 
distributions that DEC provided to everyone. The actual, commented 
sources, pretty much didn't leave DEC/Mentec/XX2247 yet.


Johnny




Sent from my iPhone


On Oct 22, 2016, at 11:15, Paul Koning  wrote:



On Oct 22, 2016, at 10:44 AM, Ray Jewhurst  wrote:

I know that RT-11 is under license from Mentec but is there a way to get the 
sources for it?  I would like preferably v5.3.  I have an idea for project to 
teach my self rudimentary OS design and I would like to use RT-11 as an example 
since PDP-11 assembly is the only assembly I know and I am already comfortable 
with RT-11.


I've always liked RT-11 FB, which is an entirely different design than the 
older SJ monitor.  Partly it's because its author was my college mentor, and 
one of the very best programmers I've ever met in over 40 years.

Unfortunately the stripped (no comments) sources omit the literary quotes he liked to 
sprinkle all over the RT-11 sources.  For example "A source of innocent merriment -- 
The Mikado" in the idle loop (the lights pattern code).

   paul


___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh


___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh




--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Johnny Billquist

On 2016-10-22 18:55, Al Kossow wrote:



On 10/22/16 7:44 AM, Ray Jewhurst wrote:

I have an idea for project to teach my self rudimentary OS design and I would 
like to use RT-11 as an example



Did anyone ever port MINIX to the PDP-11?


I don't think so. I suspect it would be non-trivial, as the memory 
limitations of the PDP-11 require that you sometimes need to design with 
that in mind from the start, or else face serious problems.


Johnny

--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Johnny Billquist

On 2016-10-22 20:21, Ray Jewhurst wrote:

I know some of the code is already there but I need comments since I am
not an expert or even a real advanced programmer in assembly. Also, the
beauty of running a simulator is that hardware resources are not as much
of a problem so I more to fill in the gaps for the stuff I am unsure of.
My personal assembly "bible " covers some systems programming but not
all. I will have to share the title of the book when I am near it. It is
available on Amazon. What my plans are is to make a simple OS with a
dual command set using both the RT-11 command line interface and RSX
style DCL. Just something fun to play with


The command line interface is really a very simple and small part of it 
all. First you need to have the actual kernel, which manage memory and 
devices. You need device drivers. And you need an API to access it all.

The you need some CUSPs.

The command line interface is really not even properly a part of the kernel.

Johnny




On Oct 22, 2016 11:58 AM, "Johnny Billquist" mailto:b...@softjar.se>> wrote:

On 2016-10-22 16:44, Ray Jewhurst wrote:

I know that RT-11 is under license from Mentec but is there a
way to get
the sources for it?  I would like preferably v5.3.  I have an
idea for
project to teach my self rudimentary OS design and I would like
to use
RT-11 as an example since PDP-11 assembly is the only assembly I
know
and I am already comfortable with RT-11.


Unless I'm confused, RT-11 already comes with some sources, but they
are stripped of comments.

Also, as an OS, it is rather rudimentary. And the code is sometimes
not that easy to follow, since they have used a lot of tricks to
squeeze the most functionality with the minimal amount of memory use.

Johnny

--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se  ||
Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com 
http://mailman.trailing-edge.com/mailman/listinfo/simh





--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Jacob Goense

On 2016-10-22 12:55, Al Kossow wrote:

On 10/22/16 7:44 AM, Ray Jewhurst wrote:
I have an idea for project to teach my self rudimentary OS design and 
I would like to use RT-11 as an example




Did anyone ever port MINIX to the PDP-11?


No way.

I vaguely recall lore about 4.x BSD stuff being ported to the PDP-11 
ending
with the machine being thrown out of the window. Citations are welcome, 
or

maybe this should be crossed over to TUHS.

ObSimh:
For the 2012 retro challenge I ported an IRC client to to 2.11 BSD, 
about
half way I seriously considered adding a window emulator for simh 
instead.



___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Al Kossow


On 10/22/16 2:46 PM, Jacob Goense wrote:
> On 2016-10-22 12:55, Al Kossow wrote:
>> On 10/22/16 7:44 AM, Ray Jewhurst wrote:
>>> I have an idea for project to teach my self rudimentary OS design and I 
>>> would like to use RT-11 as an example
>>>
>>
>> Did anyone ever port MINIX to the PDP-11?
> 
> No way.
> 

It ran on an 8088


___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Johnny Billquist

On 2016-10-22 23:46, Jacob Goense wrote:

On 2016-10-22 12:55, Al Kossow wrote:

On 10/22/16 7:44 AM, Ray Jewhurst wrote:

I have an idea for project to teach my self rudimentary OS design and
I would like to use RT-11 as an example



Did anyone ever port MINIX to the PDP-11?


No way.

I vaguely recall lore about 4.x BSD stuff being ported to the PDP-11 ending
with the machine being thrown out of the window. Citations are welcome, or
maybe this should be crossed over to TUHS.


Well, many parts of 4.x BSD did get backported to 2.11BSD. But some 
stuff just will never happen. But I agree with the "no way" comment on 
Minix.



ObSimh:
For the 2012 retro challenge I ported an IRC client to to 2.11 BSD, about
half way I seriously considered adding a window emulator for simh instead.


That must have been a pretty horrible irc client in that case. I've 
written a small irc client for RSX, which takes all about 12K (written 
in BASIC). Inspired by sic, which is only a couple of hundred lines of C 
for Unix.


Johnny

--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Nelson H. F. Beebe
Ray Jewhurst  asks today for documented
operating system source code for the PDP-11.  Besides the Lions' Unix
v6 code, there is also Doug Comer's Xinu project about which he wrote
several books.  Current versions are targeted at x86 and ARM CPUs,

http://www.xinu.cs.purdue.edu/

but he still provides code for older systems (PDP-11, SPARC, VAX):

ftp://ftp.cs.purdue.edu/pub/comer/

There is more about him here, including links to his books Web site:

https://en.wikipedia.org/wiki/Douglas_Comer

---
- Nelson H. F. BeebeTel: +1 801 581 5254  -
- University of UtahFAX: +1 801 581 4148  -
- Department of Mathematics, 110 LCBInternet e-mail: be...@math.utah.edu  -
- 155 S 1400 E RM 233   be...@acm.org  be...@computer.org -
- Salt Lake City, UT 84112-0090, USAURL: http://www.math.utah.edu/~beebe/ -
---
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Johnny Billquist
While we're at it then... Ray asked for RT-11, since he felt that it was 
smaller and simpler than most other operating systems available, and 
also because he felt more comfortable with assembler than some other 
language.


Both those points are missed with any Unix-like OS, even if the 
intention is good.


I could just as well offer up RSX, since it actually comes with source 
where the comments are still in place, and it's actually written in 
assembler for the most part as well. However, it is a much more complex 
system than RT-11, and in some ways probably more complex than Unix as 
well. So I don't think it might be a good choice if you just want to 
understand how an OS works.


In fact, I would probably suggest Ray start with just writing some code 
to do some simple things without looking at existing code. The first 
thing needed would be to just have something that can load programs from 
a device, and run them. This will require some simple device driver, 
some simple file system, and a simple command line interpreter. Then you 
can go on an expand from there. You'll soon realize things you want to 
abstract away, and deal with in a somewhat coherent way.
I wouldn't bother with interrupt system, MMU, or any more fancy stuff to 
start with. A plain 64K PDP-11, with the program loader just located in 
one end, and then go from there. Do system calls through TRAP, EMT or 
some other instruction, and then have a vector installed. If the user 
program overwrites that, tough luck.


Johnny

On 2016-10-23 02:45, Nelson H. F. Beebe wrote:

Ray Jewhurst  asks today for documented
operating system source code for the PDP-11.  Besides the Lions' Unix
v6 code, there is also Doug Comer's Xinu project about which he wrote
several books.  Current versions are targeted at x86 and ARM CPUs,

http://www.xinu.cs.purdue.edu/

but he still provides code for older systems (PDP-11, SPARC, VAX):

ftp://ftp.cs.purdue.edu/pub/comer/

There is more about him here, including links to his books Web site:

https://en.wikipedia.org/wiki/Douglas_Comer

---
- Nelson H. F. BeebeTel: +1 801 581 5254  -
- University of UtahFAX: +1 801 581 4148  -
- Department of Mathematics, 110 LCBInternet e-mail: be...@math.utah.edu  -
- 155 S 1400 E RM 233   be...@acm.org  be...@computer.org -
- Salt Lake City, UT 84112-0090, USAURL: http://www.math.utah.edu/~beebe/ -
---
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh



--
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread Ray Jewhurst
Thank you Johnny. I may ruffle some feathers, but I hate C.  I am mildly
autistic and the way my mind works I actually prefer assembly over high
level languages. I would really like a blueprint to see what I am doing. Is
there commented code for DOS/BATCH? Or even CAPS-11. I would like love to
see a fully commented kernel to see what I am up against.

Thanks
Ray

On Oct 22, 2016 9:11 PM, "Johnny Billquist"  wrote:

While we're at it then... Ray asked for RT-11, since he felt that it was
smaller and simpler than most other operating systems available, and also
because he felt more comfortable with assembler than some other language.

Both those points are missed with any Unix-like OS, even if the intention
is good.

I could just as well offer up RSX, since it actually comes with source
where the comments are still in place, and it's actually written in
assembler for the most part as well. However, it is a much more complex
system than RT-11, and in some ways probably more complex than Unix as
well. So I don't think it might be a good choice if you just want to
understand how an OS works.

In fact, I would probably suggest Ray start with just writing some code to
do some simple things without looking at existing code. The first thing
needed would be to just have something that can load programs from a
device, and run them. This will require some simple device driver, some
simple file system, and a simple command line interpreter. Then you can go
on an expand from there. You'll soon realize things you want to abstract
away, and deal with in a somewhat coherent way.
I wouldn't bother with interrupt system, MMU, or any more fancy stuff to
start with. A plain 64K PDP-11, with the program loader just located in one
end, and then go from there. Do system calls through TRAP, EMT or some
other instruction, and then have a vector installed. If the user program
overwrites that, tough luck.

Johnny


On 2016-10-23 02:45, Nelson H. F. Beebe wrote:

> Ray Jewhurst  asks today for documented
> operating system source code for the PDP-11.  Besides the Lions' Unix
> v6 code, there is also Doug Comer's Xinu project about which he wrote
> several books.  Current versions are targeted at x86 and ARM CPUs,
>
> http://www.xinu.cs.purdue.edu/
>
> but he still provides code for older systems (PDP-11, SPARC, VAX):
>
> ftp://ftp.cs.purdue.edu/pub/comer/
>
> There is more about him here, including links to his books Web site:
>
> https://en.wikipedia.org/wiki/Douglas_Comer
>
> 
> ---
> - Nelson H. F. BeebeTel: +1 801 581 5254
> -
> - University of UtahFAX: +1 801 581 4148
> -
> - Department of Mathematics, 110 LCBInternet e-mail:
> be...@math.utah.edu  -
> - 155 S 1400 E RM 233   be...@acm.org
> be...@computer.org -
> - Salt Lake City, UT 84112-0090, USAURL:
> http://www.math.utah.edu/~beebe/ -
> 
> ---
> ___
> Simh mailing list
> Simh@trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
>
-- 
Johnny Billquist  || "I'm on a bus
  ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread khandy21yo
CP/M works a lot like this. But it's for 8989 not PDP11. It's also been ported 
to several other systems. Source code is available, but many folks don't 
consider it an OS.


Sent from my Galaxy Tab® A
 Original message From: Johnny Billquist  
Date: 10/22/16  7:11 PM  (GMT-07:00) To: simh@trailing-edge.com Subject: Re: 
[Simh] RT-11 source 
While we're at it then... Ray asked for RT-11, since he felt that it was 
smaller and simpler than most other operating systems available, and 
also because he felt more comfortable with assembler than some other 
language.

Both those points are missed with any Unix-like OS, even if the 
intention is good.

I could just as well offer up RSX, since it actually comes with source 
where the comments are still in place, and it's actually written in 
assembler for the most part as well. However, it is a much more complex 
system than RT-11, and in some ways probably more complex than Unix as 
well. So I don't think it might be a good choice if you just want to 
understand how an OS works.

In fact, I would probably suggest Ray start with just writing some code 
to do some simple things without looking at existing code. The first 
thing needed would be to just have something that can load programs from 
a device, and run them. This will require some simple device driver, 
some simple file system, and a simple command line interpreter. Then you 
can go on an expand from there. You'll soon realize things you want to 
abstract away, and deal with in a somewhat coherent way.
I wouldn't bother with interrupt system, MMU, or any more fancy stuff to 
start with. A plain 64K PDP-11, with the program loader just located in 
one end, and then go from there. Do system calls through TRAP, EMT or 
some other instruction, and then have a vector installed. If the user 
program overwrites that, tough luck.

Johnny

On 2016-10-23 02:45, Nelson H. F. Beebe wrote:
> Ray Jewhurst  asks today for documented
> operating system source code for the PDP-11.  Besides the Lions' Unix
> v6 code, there is also Doug Comer's Xinu project about which he wrote
> several books.  Current versions are targeted at x86 and ARM CPUs,
>
>   http://www.xinu.cs.purdue.edu/
>
> but he still provides code for older systems (PDP-11, SPARC, VAX):
>
>   ftp://ftp.cs.purdue.edu/pub/comer/
>
> There is more about him here, including links to his books Web site:
>
>   https://en.wikipedia.org/wiki/Douglas_Comer
>
> ---
> - Nelson H. F. Beebe    Tel: +1 801 581 5254  
> -
> - University of Utah    FAX: +1 801 581 4148  
> -
> - Department of Mathematics, 110 LCB    Internet e-mail: be...@math.utah.edu  
> -
> - 155 S 1400 E RM 233   be...@acm.org  be...@computer.org 
> -
> - Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ 
> -
> ---
> ___
> Simh mailing list
> Simh@trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
>

-- 
Johnny Billquist  || "I'm on a bus
   ||  on a psychedelic trip
email: b...@softjar.se ||  Reading murder books
pdp is alive! ||  tryin' to stay hip" - B. Idol
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] Simh Digest, Vol 153, Issue 26

2016-10-22 Thread Leo Broukhis
Thank you, Nelson!

 It appears that, indeed, apart from theoretical research, there was not
much actual work attempting to perfect the accuracy of the conversions
until the 1990s.
Then I don't have to feel ashamed on behalf of the Soviet applied
mathematicians that they didn't do a job good enough by today's standards
in the mid-1970s.
That's a relief.

Regards,
Leo

On Mon, 17 Oct 2016 18:42:19 -0600, "Nelson H. F. Beebe" <
be...@math.utah.edu> wrote:

>
> The discussions on this thread began with a question about the
> accuracy of binary->decimal->binary conversions.  The key original
> references are recorded in
>
> http://www.math.utah.edu/pub/tex/bib/fparith.bib
> http://www.math.utah.edu/pub/tex/bib/fparith.html
>
> in entries Goldberg:1967:BED, Matula:1968:BCT, and Matula:1968:C.
> Those papers showed how many digits were needed for correct round-trip
> conversions, but did not exhibit code to do so.
>
> Some later papers had real source code, including Steele:1990:HPF,
> Clinger:1990:HRF, Clinger:2004:RHR, Burger:1996:PFP, Knuth:1990:SPW,
> and Abbott:1999:ASS.  The 20-year retrospectives in Clinger:2004:RHR
> and Steele:2004:RHP sum up that earlier work, and may be the best
> starting point to understand the problem.
>
> It is decidedly nontrivial: the Abbott paper in the section
> ``Difficult numbers'' starting on page 739 discusses hard cases [where
> the exact result in the output base is almost exactly halfway between
> two machine numbers], and on page 740, they write ``The decimal size
> may be unbounded, because there is a natural bound derived from the
> exponent range, as was mentioned earlier. This bound is 126 digits for
> single, 752 for double, and 11503 for extended precision.''
>
> Entry Knuth:1990:SPW has the provocative title ``A Simple Program
> Whose Proof Isn't'': it examines the conversions between fixed-binary
> and decimal needed in the TeX typesetting system, a much simpler
> problem whose proof eluded Knuth for several years until this paper.
> A companion paper Gries:1990:BDO supplies an alternative proof of
> Knuth's algorithm.
>
> As to the first actual system to provide correct round-trip
> conversions, the Abbott paper on the IBM mainframe (S/360 to zSeries
> machines) describes the pressure to get it right the first time,
> because of the longevity of that architecture, and the high cost of
> repairing hardware implementations.
>
> The 1990 Steele and Clinger references above supply software
> implementations in Common Lisp exploiting the multiple-precision
> arithmetic supported in that language.
>
> Some current compilers, such as releases of gcc for the last several
> years, use the GMP and MPFR multiple-precision arithmetic packages to
> supply correct compile-time conversions.  Presumably, the revision
> history of GNU glibc would reveal when similar actions were taken for
> the strtod(), printf(), and scanf() families of the C and C++
> programming languages. I have not personally investigated that point,
> but perhaps other list members have, and can report their findings.
>
> >From scans of executables of assorted gcc versions, it appears that
> GMP and MPFR came into use in gcc-family compilers about mid-2007.
> The oldest gcc snapshot (of hundreds that I have installed) that
> references both those libraries is gcc-4.3-20070720.  However, the
> ChangeLog file in that release has mention on MPFR from 18-Nov-2006,
> and an entry of 11-Jan-2007 that says "Add gmp and mpfr".
>
> David M. Gay (then at AT&T Bell Labs renamed as Lucent Technologies)
> released an accurate implementation of strtod() marked "Copyright (C)
> 1998-2001 by Lucent Technologies".  The oldest filedate in my personal
> archives of versions of that software is 22-Jun-1998, with changes up
> to 29-Nov-2007.
>
>
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Re: [Simh] RT-11 source

2016-10-22 Thread khandy21yo
They're are a lot of different versions of Unix out there, with comments, for 
many machines. If you want simple, there is Unix V0 for the PDP7.


Sent from my Galaxy Tab® A
 Original message From: Ray Jewhurst  
Date: 10/22/16  12:21 PM  (GMT-07:00) To: Johnny Billquist  
Cc: simh@trailing-edge.com Subject: Re: [Simh] RT-11 source 
I know some of the code is already there but I need comments since I am not an 
expert or even a real advanced programmer in assembly. Also, the beauty of 
running a simulator is that hardware resources are not as much of a problem so 
I more to fill in the gaps for the stuff I am unsure of. My personal assembly 
"bible " covers some systems programming but not all. I will have to share the 
title of the book when I am near it. It is available on Amazon. What my plans 
are is to make a simple OS with a dual command set using both the RT-11 command 
line interface and RSX style DCL. Just something fun to play with

On Oct 22, 2016 11:58 AM, "Johnny Billquist"  wrote:
On 2016-10-22 16:44, Ray Jewhurst wrote:


I know that RT-11 is under license from Mentec but is there a way to get

the sources for it?  I would like preferably v5.3.  I have an idea for

project to teach my self rudimentary OS design and I would like to use

RT-11 as an example since PDP-11 assembly is the only assembly I know

and I am already comfortable with RT-11.




Unless I'm confused, RT-11 already comes with some sources, but they are 
stripped of comments.



Also, as an OS, it is rather rudimentary. And the code is sometimes not that 
easy to follow, since they have used a lot of tricks to squeeze the most 
functionality with the minimal amount of memory use.



        Johnny



-- 

Johnny Billquist                  || "I'm on a bus

                                  ||  on a psychedelic trip

email: b...@softjar.se             ||  Reading murder books

pdp is alive!                     ||  tryin' to stay hip" - B. Idol

___

Simh mailing list

Simh@trailing-edge.com

http://mailman.trailing-edge.com/mailman/listinfo/simh
___
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh