So, I'm working on a project where I'm aiming to get the first winner of the IOCCC (obfuscated c code contest) dissected down to the last detail... The program is mullender.c which you can find by following that link.
Anyway, I've gotten it running under pdp-11/70 using simh as well as vax780. The thing is it relies on the 'write' syscall (and maybe one other). Just for fun, I'd like to try getting this running on a pure pdp-11/vax machine (i.e, no OS providing syscall support). What should I be looking into doing here? It looks like MACRO-11 (pdf warning) is the assembly language for the pdp. You can also enter octal directly into the memory in simh but that's a little arduous.
I'm totally out of my depth here so basically I'm asking for a starting point - where do I need to begin looking to make this work? There are a million manuals but I've seen nothing concrete (i.e, example programs). From what I've researched I need to poll the status on the dz11 device (pdf warning) and if it's ready just write to it, then repeat. Seems easy enough in theory but of course the question of how to get it working is another matter =).