<p dir="ltr">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. </p>
<p dir="ltr">Thanks <br>
Ray </p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 22, 2016 9:11 PM, "Johnny Billquist" <<a href="mailto:bqt@softjar.se">bqt@softjar.se</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<br>
Both those points are missed with any Unix-like OS, even if the intention is good.<br>
<br>
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.<br>
<br>
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.<br>
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.<font color="#888888"><br>
<br>
        Johnny</font><div class="elided-text"><br>
<br>
On 2016-10-23 02:45, Nelson H. F. Beebe wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ray Jewhurst <<a href="mailto:raywjewhurst@gmail.com" target="_blank">raywjewhurst@gmail.com</a>> asks today for documented<br>
operating system source code for the PDP-11.  Besides the Lions' Unix<br>
v6 code, there is also Doug Comer's Xinu project about which he wrote<br>
several books.  Current versions are targeted at x86 and ARM CPUs,<br>
<br>
        <a href="http://www.xinu.cs.purdue.edu/" rel="noreferrer" target="_blank">http://www.xinu.cs.purdue.edu/</a><br>
<br>
but he still provides code for older systems (PDP-11, SPARC, VAX):<br>
<br>
        <a href="ftp://ftp.cs.purdue.edu/pub/comer/" rel="noreferrer" target="_blank">ftp://ftp.cs.purdue.edu/pub/co<wbr>mer/</a><br>
<br>
There is more about him here, including links to his books Web site:<br>
<br>
        <a href="https://en.wikipedia.org/wiki/Douglas_Comer" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/<wbr>Douglas_Comer</a><br>
<br>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
- Nelson H. F. Beebe                    Tel: <a href="tel:%2B1%20801%20581%205254" value="+18015815254" target="_blank">+1 801 581 5254</a>                  -<br>
- University of Utah                    FAX: <a href="tel:%2B1%20801%20581%204148" value="+18015814148" target="_blank">+1 801 581 4148</a>                  -<br>
- Department of Mathematics, 110 LCB    Internet e-mail: <a href="mailto:beebe@math.utah.edu" target="_blank">beebe@math.utah.edu</a>  -<br>
- 155 S 1400 E RM 233                       <a href="mailto:beebe@acm.org" target="_blank">beebe@acm.org</a>  <a href="mailto:beebe@computer.org" target="_blank">beebe@computer.org</a> -<br>
- Salt Lake City, UT 84112-0090, USA    URL: <a href="http://www.math.utah.edu/~beebe/" rel="noreferrer" target="_blank">http://www.math.utah.edu/~beeb<wbr>e/</a> -<br>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
______________________________<wbr>_________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com" target="_blank">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.c<wbr>om/mailman/listinfo/simh</a><br>
<br>
</blockquote>
<br></div><div class="quoted-text">
-- <br>
Johnny Billquist                  || "I'm on a bus<br>
                                  ||  on a psychedelic trip<br>
email: <a href="mailto:bqt@softjar.se" target="_blank">bqt@softjar.se</a>             ||  Reading murder books<br>
pdp is alive!                     ||  tryin' to stay hip" - B. Idol<br></div><div class="elided-text">
______________________________<wbr>_________________<br>
Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com" target="_blank">Simh@trailing-edge.com</a><br>
<a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" rel="noreferrer" target="_blank">http://mailman.trailing-edge.c<wbr>om/mailman/listinfo/simh</a></div></blockquote></div><br></div>