去http://simh.trailing-edge.com/software.html下载uv7swre.zip,解压后生成
unix_v7_rl.dsk
$ vi boot.int
$ cat boot.int
set
cpu
u18
set
rl0
RL02
att
rl0
unix_v7_rl.dsk
boot
rl0
q
$ pdp11 boot.int
PDP-11 simulator V3.9-0
Disabling XQ
@boot
New Boot, known devices are hp ht rk rl rp tm vt
: rl(0,0)rl2unix
mem = 177856
#
mem = 177856
# cat /etc/passwd
root:VwL97VCAx1Qhs:0:1::/:
daemon:x:1:1::/:
sys::2:2::/usr/sys:
bin::3:3::/bin:
uucp::4:4::/usr/lib/uucp:/usr/lib/uucico
dmr::7:3::/usr/dmr:
# mkdir /usr/dmr
# chown dmr /usr/dmr
# chgrp 3 /usr/dmr
# mkdir /tmp
# chmod 777 /tmp
# ^D
Restricted rights: Use, duplication, or disclosure
is subject to restrictions stated in your contract with
Western Electric Company, Inc.
Thu Sep 22 05:51:05 EDT 1988
login: dmr
$ ed hello.c
?hello.c
a
main()
{
printf("Hello World!\n");
}
.
w
40
q
$ cc hello.c
$ a.out