>Joseph Ambrose wrote:
>Sebesta. 1985. PDP-11: Structured Assembly Language Programming. 432p
>
>I can recommend this book because I had the author as a prof during my days as an undergrad at SUNY Oswego (76-80) He was the CS dept. chair at the time..
>
>His VAX assembler book is also well done.
>
I suggest that if you want to understand how to write
PDP-11 code under any of the PDP-11 operating
systems, one of the more helpful methods is to read
and understand the code written by DEC for that
operating system.
For example, under RT-11, the files used to build
the operating system, the device drivers and the
utilities contain almost countless examples of very
experienced software system designers, probably
too many examples for most individuals to ever
read in their entire lives. I have been working with
RT-11 for more than 30 years and I still have not
even looked at more than about half the total code
used to produce any given RT-11 binary distribution.
By the way, the total size of all of the commented
source code files required to produce an RT-11
binary distribution is approximately 25 MB. So there
is a lot to read.
I suspect that if you are more interested in either RSTS/E
or RSX-11 and can locate the source code files used
to produce those operating systems, that will well serve
anyone who wants to learn PDP-11 assembly language.
While I agree that formal books such as the example
by Sebesta are also essential if someone wants a
full understanding of code used in mathematical
operations - which differ in their basic intent from
operating system code, as an excellent starting point,
operating system code provides great examples.
On the other hand, if FORTRAN is your primary
language, then there is really very little about the
PDP-11 that is different from FORTRAN run on
similar systems. Since the address range is limited
to 64 KBytes, large programs will require overlays
that are no longer needed with most 32 bit address
hardware.
But the question was about assembly language, so
the use of operating system, device drivers and
utilities is probably still a great source of examples.
If anyone has any additional questions, please ask.
Jerome Fine