Unix Programmer's Manual, First Edition (1971)
bell-labs.com
bell-labs.com
NAME switch -- switch on value
SYNOPSIS (switch value in r0)
jsr r5,switch;
swtab
(not—found return)
swtab: val1; lab1;
valn; labn
..; 0
DESCRIPTION switch compares the value of r0 against each
of the vali; if a match is found, control is
transferred to the corresponding lab. (after
popping the stack once). If no match has been
found by the time a null labi occurs, switch
returns.C was based upon B, which was based upon BCPL. Clearly, the Bell Labs crew were trying to give themselves some BCPL goodness, even in assembly language.
Bootstrap CPL.
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V1
Where can we learn the PDP assembly to be able to understand these historical source code?
and linked from that page
http://bitsavers.trailing-edge.com/pdf/dec/pdp11/rsx11/RSX11...
There are probably better references, but that's what I found in a quick look.
https://pdos.csail.mit.edu/6.828/2005/readings/pdp11-40.pdf
The PDP-11 instruction set is small and elegant.
> The PDP-11/40 was designed to fit a broad range of applications, from small stand alone situations ... to large multi-user, multi-task applications requiring up to 124K of addressable memory space.
I'm young, and it's crazy to look back and see how far we've come.
There wasn't much available for a "home computer" at the time, but the Kenbak-1 might be a good example for comparison of what one would have cost. It was $750, or $4400 inflation adjusted. It had 256 bytes of memory.
Scared PDP-endianess sounds...
9 years ago discussion: https://news.ycombinator.com/item?id=3106204