当前位置: 首页 > 工具软件 > SimH > 使用案例 >

simh中运行unix v7

富建章
2023-12-01
去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

 类似资料: