On Tue, Feb 13, 2018 at 8:18 PM, Dave Horsfall <dave@horsfall.org> wrote:
On Tue, 13 Feb 2018, Warner Losh wrote:

I don't suppose anybody has written a pdp-11 assembler to C translator... My google fu is insufficient for the day.

I'd like to see it handle "JSR PC,@(SP)+"...  Are you reverse-engineering something, writing a PDP-11 simulator, or what?

I was wondering what it would take to convert the v6/v7 basic program into something that can be run today.

http://www.tuhs.org/cgi-bin/utree.pl?file=V6/usr/source/s1/bas.s
or
http://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/bas/bas.s

Its 2128 lines. It doesn't have that fun instruction in it :)

Warner