diff --git a/fs/new/etc/init b/fs/new/etc/init new file mode 100755 index 0000000..30805ac Binary files /dev/null and b/fs/new/etc/init differ diff --git a/fs/root/bin/: b/fs/root/bin/: new file mode 100755 index 0000000..ede54e9 Binary files /dev/null and b/fs/root/bin/: differ diff --git a/fs/root/bin/ar b/fs/root/bin/ar new file mode 100755 index 0000000..1eea86e Binary files /dev/null and b/fs/root/bin/ar differ diff --git a/fs/root/bin/as b/fs/root/bin/as new file mode 100755 index 0000000..077b383 Binary files /dev/null and b/fs/root/bin/as differ diff --git a/fs/root/bin/bas b/fs/root/bin/bas new file mode 100755 index 0000000..fb771b5 Binary files /dev/null and b/fs/root/bin/bas differ diff --git a/fs/root/bin/cal b/fs/root/bin/cal new file mode 100755 index 0000000..9da5f19 Binary files /dev/null and b/fs/root/bin/cal differ diff --git a/fs/root/bin/cat b/fs/root/bin/cat new file mode 100755 index 0000000..e50bddc Binary files /dev/null and b/fs/root/bin/cat differ diff --git a/fs/root/bin/cc b/fs/root/bin/cc new file mode 100755 index 0000000..204c965 Binary files /dev/null and b/fs/root/bin/cc differ diff --git a/fs/root/bin/chball b/fs/root/bin/chball new file mode 100755 index 0000000..4b5bb41 Binary files /dev/null and b/fs/root/bin/chball differ diff --git a/fs/root/bin/check b/fs/root/bin/check new file mode 100755 index 0000000..c89b75d Binary files /dev/null and b/fs/root/bin/check differ diff --git a/fs/root/bin/chmod b/fs/root/bin/chmod new file mode 100755 index 0000000..3461d2f Binary files /dev/null and b/fs/root/bin/chmod differ diff --git a/fs/root/bin/chown b/fs/root/bin/chown new file mode 100755 index 0000000..6593ced Binary files /dev/null and b/fs/root/bin/chown differ diff --git a/fs/root/bin/cmp b/fs/root/bin/cmp new file mode 100755 index 0000000..447dc7c Binary files /dev/null and b/fs/root/bin/cmp differ diff --git a/fs/root/bin/cp b/fs/root/bin/cp new file mode 100755 index 0000000..6029a9a Binary files /dev/null and b/fs/root/bin/cp differ diff --git a/fs/root/bin/date b/fs/root/bin/date new file mode 100755 index 0000000..f73b7fe Binary files /dev/null and b/fs/root/bin/date differ diff --git a/fs/root/bin/db b/fs/root/bin/db new file mode 100755 index 0000000..8c4aa56 Binary files /dev/null and b/fs/root/bin/db differ diff --git a/fs/root/bin/dc b/fs/root/bin/dc new file mode 100755 index 0000000..0c2c238 Binary files /dev/null and b/fs/root/bin/dc differ diff --git a/fs/root/bin/df b/fs/root/bin/df new file mode 100755 index 0000000..0268112 Binary files /dev/null and b/fs/root/bin/df differ diff --git a/fs/root/bin/ds b/fs/root/bin/ds new file mode 100755 index 0000000..fa4bf6b Binary files /dev/null and b/fs/root/bin/ds differ diff --git a/fs/root/bin/dsw b/fs/root/bin/dsw new file mode 100755 index 0000000..4f89e0c Binary files /dev/null and b/fs/root/bin/dsw differ diff --git a/fs/root/bin/du b/fs/root/bin/du new file mode 100755 index 0000000..9446a5f Binary files /dev/null and b/fs/root/bin/du differ diff --git a/fs/root/bin/echo b/fs/root/bin/echo new file mode 100755 index 0000000..2429fc3 Binary files /dev/null and b/fs/root/bin/echo differ diff --git a/fs/root/bin/ed b/fs/root/bin/ed new file mode 100755 index 0000000..935a488 Binary files /dev/null and b/fs/root/bin/ed differ diff --git a/fs/root/bin/exit b/fs/root/bin/exit new file mode 100755 index 0000000..550ba57 Binary files /dev/null and b/fs/root/bin/exit differ diff --git a/fs/root/bin/fc b/fs/root/bin/fc new file mode 100755 index 0000000..3577712 Binary files /dev/null and b/fs/root/bin/fc differ diff --git a/fs/root/bin/find b/fs/root/bin/find new file mode 100755 index 0000000..175b427 Binary files /dev/null and b/fs/root/bin/find differ diff --git a/fs/root/bin/form b/fs/root/bin/form new file mode 100755 index 0000000..642b15f Binary files /dev/null and b/fs/root/bin/form differ diff --git a/fs/root/bin/goto b/fs/root/bin/goto new file mode 100755 index 0000000..b6916e5 Binary files /dev/null and b/fs/root/bin/goto differ diff --git a/fs/root/bin/if b/fs/root/bin/if new file mode 100755 index 0000000..6dadcb8 Binary files /dev/null and b/fs/root/bin/if differ diff --git a/fs/root/bin/ld b/fs/root/bin/ld new file mode 100755 index 0000000..74fa7dc Binary files /dev/null and b/fs/root/bin/ld differ diff --git a/fs/root/bin/ln b/fs/root/bin/ln new file mode 100755 index 0000000..94a5c4b Binary files /dev/null and b/fs/root/bin/ln differ diff --git a/fs/root/bin/login b/fs/root/bin/login new file mode 100755 index 0000000..599922b Binary files /dev/null and b/fs/root/bin/login differ diff --git a/fs/root/bin/ls b/fs/root/bin/ls new file mode 100755 index 0000000..71846c3 Binary files /dev/null and b/fs/root/bin/ls differ diff --git a/fs/root/bin/mail b/fs/root/bin/mail new file mode 100755 index 0000000..bfaf097 Binary files /dev/null and b/fs/root/bin/mail differ diff --git a/fs/root/bin/maki b/fs/root/bin/maki new file mode 100755 index 0000000..58e7592 Binary files /dev/null and b/fs/root/bin/maki differ diff --git a/fs/root/bin/mesg b/fs/root/bin/mesg new file mode 100755 index 0000000..049f588 Binary files /dev/null and b/fs/root/bin/mesg differ diff --git a/fs/root/bin/mkdir b/fs/root/bin/mkdir new file mode 100755 index 0000000..e781e3f Binary files /dev/null and b/fs/root/bin/mkdir differ diff --git a/fs/root/bin/mv b/fs/root/bin/mv new file mode 100755 index 0000000..a6ab3ad Binary files /dev/null and b/fs/root/bin/mv differ diff --git a/fs/root/bin/nm b/fs/root/bin/nm new file mode 100755 index 0000000..d8779fd Binary files /dev/null and b/fs/root/bin/nm differ diff --git a/fs/root/bin/od b/fs/root/bin/od new file mode 100755 index 0000000..ee72837 Binary files /dev/null and b/fs/root/bin/od differ diff --git a/fs/root/bin/pr b/fs/root/bin/pr new file mode 100755 index 0000000..f90bb10 Binary files /dev/null and b/fs/root/bin/pr differ diff --git a/fs/root/bin/rew b/fs/root/bin/rew new file mode 100755 index 0000000..aa3dce4 Binary files /dev/null and b/fs/root/bin/rew differ diff --git a/fs/root/bin/rm b/fs/root/bin/rm new file mode 100755 index 0000000..116409b Binary files /dev/null and b/fs/root/bin/rm differ diff --git a/fs/root/bin/rmdir b/fs/root/bin/rmdir new file mode 100755 index 0000000..c96919d Binary files /dev/null and b/fs/root/bin/rmdir differ diff --git a/fs/root/bin/roff b/fs/root/bin/roff new file mode 100755 index 0000000..58f2071 Binary files /dev/null and b/fs/root/bin/roff differ diff --git a/fs/root/bin/sh b/fs/root/bin/sh new file mode 100755 index 0000000..67ac8c1 Binary files /dev/null and b/fs/root/bin/sh differ diff --git a/fs/root/bin/size b/fs/root/bin/size new file mode 100755 index 0000000..b9b1d3c Binary files /dev/null and b/fs/root/bin/size differ diff --git a/fs/root/bin/skip b/fs/root/bin/skip new file mode 100755 index 0000000..88fbaf0 Binary files /dev/null and b/fs/root/bin/skip differ diff --git a/fs/root/bin/sort b/fs/root/bin/sort new file mode 100755 index 0000000..38be181 Binary files /dev/null and b/fs/root/bin/sort differ diff --git a/fs/root/bin/stat b/fs/root/bin/stat new file mode 100755 index 0000000..660ec2b Binary files /dev/null and b/fs/root/bin/stat differ diff --git a/fs/root/bin/strip b/fs/root/bin/strip new file mode 100755 index 0000000..781b5ed Binary files /dev/null and b/fs/root/bin/strip differ diff --git a/fs/root/bin/stty b/fs/root/bin/stty new file mode 100755 index 0000000..0eaa77b Binary files /dev/null and b/fs/root/bin/stty differ diff --git a/fs/root/bin/su b/fs/root/bin/su new file mode 100755 index 0000000..7fffeba Binary files /dev/null and b/fs/root/bin/su differ diff --git a/fs/root/bin/sum b/fs/root/bin/sum new file mode 100755 index 0000000..6b27c6f Binary files /dev/null and b/fs/root/bin/sum differ diff --git a/fs/root/bin/tap b/fs/root/bin/tap new file mode 100755 index 0000000..3b0781a Binary files /dev/null and b/fs/root/bin/tap differ diff --git a/fs/root/bin/tm b/fs/root/bin/tm new file mode 100755 index 0000000..58f03ad Binary files /dev/null and b/fs/root/bin/tm differ diff --git a/fs/root/bin/tty b/fs/root/bin/tty new file mode 100755 index 0000000..50bcbc9 Binary files /dev/null and b/fs/root/bin/tty differ diff --git a/fs/root/bin/un b/fs/root/bin/un new file mode 100755 index 0000000..e9c333b Binary files /dev/null and b/fs/root/bin/un differ diff --git a/fs/root/bin/wc b/fs/root/bin/wc new file mode 100755 index 0000000..2b5ece2 Binary files /dev/null and b/fs/root/bin/wc differ diff --git a/fs/root/bin/who b/fs/root/bin/who new file mode 100755 index 0000000..ae6b4f4 Binary files /dev/null and b/fs/root/bin/who differ diff --git a/fs/root/bin/write b/fs/root/bin/write new file mode 100755 index 0000000..d352242 Binary files /dev/null and b/fs/root/bin/write differ diff --git a/fs/root/etc/as2 b/fs/root/etc/as2 new file mode 100755 index 0000000..7a718b0 Binary files /dev/null and b/fs/root/etc/as2 differ diff --git a/fs/root/etc/getty b/fs/root/etc/getty new file mode 100755 index 0000000..95979a5 Binary files /dev/null and b/fs/root/etc/getty differ diff --git a/fs/root/etc/glob b/fs/root/etc/glob new file mode 100755 index 0000000..44701f9 Binary files /dev/null and b/fs/root/etc/glob differ diff --git a/fs/root/etc/init b/fs/root/etc/init new file mode 100755 index 0000000..83f7535 Binary files /dev/null and b/fs/root/etc/init differ diff --git a/fs/root/etc/msh b/fs/root/etc/msh new file mode 100755 index 0000000..30f276a Binary files /dev/null and b/fs/root/etc/msh differ diff --git a/fs/root/etc/passwd b/fs/root/etc/passwd new file mode 100755 index 0000000..7edef28 --- /dev/null +++ b/fs/root/etc/passwd @@ -0,0 +1,13 @@ +root::0:/: +eroot::0:/:/bin/ed +sys::1:/usr/sys: +bin::3:/bin: +adm::3:/usr/adm: +s1::3:/usr/s1: +s2::3:/usr/s2: +jack::10:/usr/jack: +peter::11:/usr/peter: +jay::12:/usr/jay: +bob::13:/usr/bob: +sun::14:/usr/sun: +lee::15:/usr/lee: diff --git a/fs/root/etc/std0 b/fs/root/etc/std0 new file mode 100755 index 0000000..b1c82ee Binary files /dev/null and b/fs/root/etc/std0 differ diff --git a/fs/root/etc/suftab b/fs/root/etc/suftab new file mode 100755 index 0000000..a4decc4 Binary files /dev/null and b/fs/root/etc/suftab differ diff --git a/fs/root/etc/uids b/fs/root/etc/uids new file mode 100755 index 0000000..efda91d --- /dev/null +++ b/fs/root/etc/uids @@ -0,0 +1,10 @@ +root:0 +sys:1 +bin:3 +adm:3 +jack:10 +peter:11 +jay:12 +bob:13 +sun:14 +lee:15 diff --git a/fs/root/tmp/etma b/fs/root/tmp/etma new file mode 100755 index 0000000..faaff7a Binary files /dev/null and b/fs/root/tmp/etma differ diff --git a/fs/root/tmp/ttmp b/fs/root/tmp/ttmp new file mode 100755 index 0000000..55c09f5 Binary files /dev/null and b/fs/root/tmp/ttmp differ diff --git a/fs/root/tmp/utmp b/fs/root/tmp/utmp new file mode 100755 index 0000000..6e947d2 Binary files /dev/null and b/fs/root/tmp/utmp differ diff --git a/fs/usr/fort/fc1 b/fs/usr/fort/fc1 new file mode 100755 index 0000000..ba06848 Binary files /dev/null and b/fs/usr/fort/fc1 differ diff --git a/fs/usr/fort/fc2 b/fs/usr/fort/fc2 new file mode 100755 index 0000000..4fabaac Binary files /dev/null and b/fs/usr/fort/fc2 differ diff --git a/fs/usr/fort/fc3 b/fs/usr/fort/fc3 new file mode 100755 index 0000000..f1f164f Binary files /dev/null and b/fs/usr/fort/fc3 differ diff --git a/fs/usr/fort/fc4 b/fs/usr/fort/fc4 new file mode 100755 index 0000000..e0b5df0 Binary files /dev/null and b/fs/usr/fort/fc4 differ diff --git a/fs/usr/jack/a.out b/fs/usr/jack/a.out new file mode 100755 index 0000000..6cc2d39 Binary files /dev/null and b/fs/usr/jack/a.out differ diff --git a/fs/usr/jack/x.f b/fs/usr/jack/x.f new file mode 100755 index 0000000..c495459 --- /dev/null +++ b/fs/usr/jack/x.f @@ -0,0 +1,5 @@ + a = 2.3 + i = 10 + print 100, a, i +100 format(2hhi, f10.2, i5) + end diff --git a/fs/usr/ken/maki.s b/fs/usr/ken/maki.s new file mode 100755 index 0000000..ee4284c --- /dev/null +++ b/fs/usr/ken/maki.s @@ -0,0 +1,54 @@ +/ maki -- make initialization dec tape + + sys open; std0; 0 + bes error + mov r0,r1 + sys read; buf; 512. + mov r1,r0 + sys close + sys open; tap0; 1 + bes error + mov r0,r1 + sys write; buf; 512. + bes error + sys open; rf; 0 + bes error + mov r0,r2 + jsr pc,copy + mov r1,r0 + sys close + sys open; tap1; 1 + bes error + mov r0,r1 + jsr pc,copy + sys exit + +copy: + mov $512.,-(sp) +1: + mov r2,r0 + sys read; buf; 512. + bes error + mov r1,r0 + sys write; buf; 512. + bes error + dec (sp) + bne 1b + tst (sp)+ + rts pc + +error: + mov $1,r0 + sys write; mes; emes-mes + sys exit + +mes: + +emes: +tap0: +tap1: +rf: +std0: +.even + +buf: .=.+512. diff --git a/fs/usr/lib/bilib.a b/fs/usr/lib/bilib.a new file mode 100755 index 0000000..5a5f757 Binary files /dev/null and b/fs/usr/lib/bilib.a differ diff --git a/fs/usr/lib/c0 b/fs/usr/lib/c0 new file mode 100755 index 0000000..165498b Binary files /dev/null and b/fs/usr/lib/c0 differ diff --git a/fs/usr/lib/c1 b/fs/usr/lib/c1 new file mode 100755 index 0000000..52cc456 Binary files /dev/null and b/fs/usr/lib/c1 differ diff --git a/fs/usr/lib/filib.a b/fs/usr/lib/filib.a new file mode 100755 index 0000000..0ddc2d8 Binary files /dev/null and b/fs/usr/lib/filib.a differ diff --git a/fs/usr/lib/liba.a b/fs/usr/lib/liba.a new file mode 100755 index 0000000..dec003d Binary files /dev/null and b/fs/usr/lib/liba.a differ diff --git a/fs/usr/lib/libb.a b/fs/usr/lib/libb.a new file mode 100755 index 0000000..102d6f4 Binary files /dev/null and b/fs/usr/lib/libb.a differ diff --git a/fs/usr/lib/libc.a b/fs/usr/lib/libc.a new file mode 100755 index 0000000..dc35e34 Binary files /dev/null and b/fs/usr/lib/libc.a differ diff --git a/fs/usr/lib/libf.a b/fs/usr/lib/libf.a new file mode 100755 index 0000000..ea3f56a Binary files /dev/null and b/fs/usr/lib/libf.a differ diff --git a/fs/usr/sys/a.out b/fs/usr/sys/a.out new file mode 100755 index 0000000..4fc0915 Binary files /dev/null and b/fs/usr/sys/a.out differ diff --git a/fs/usr/sys/core b/fs/usr/sys/core new file mode 100755 index 0000000..ba898a4 Binary files /dev/null and b/fs/usr/sys/core differ diff --git a/fs/usr/sys/maki.s b/fs/usr/sys/maki.s new file mode 100755 index 0000000..84b66be --- /dev/null +++ b/fs/usr/sys/maki.s @@ -0,0 +1,162 @@ +/ maki -- make initialization dec tape + + sys open; tape; 1 + bes error + mov r0,fo + sys write; vcboot; 512. + bes error + sys open; disk; 0 + bes error + mov r0,r1 + sys seek; 1700; 0 + bes error + mov $64.,r2 +1: + mov r1,r0 + sys read; buf; 512. + jsr pc,tout + dec r2 + bne 1b + mov r1,r0 + sys close + mov $files,r5 +1: + tstb (r5) + beq 1f + mov r5,0f + sys stat; 0:..; buf + bes error + mov $buf,r3 + mov buf+6,(r3)+ / size + movb buf+2,(r3)+ / mode + movb buf+5,(r3)+ / uid +2: + movb (r5)+,(r3)+ + bne 2b +2: + clrb (r3)+ + cmp r3,$buf+512. + blo 2b + jsr pc,tout + sys open; buf+4; 0 + bes error + mov r0,fi +2: + mov fi,r0 + sys read; buf; 512. + tst r0 + beq 2f + jsr pc,tout + br 2b +2: + mov fi,r0 + sys close + br 1b +1: + clr buf + jsr pc,tout + sys exit + +tout: + mov fo,r0 + sys write; buf; 512. + bes error + rts pc + +error: + mov $1,r0 + sys write; 1f; 4 + 4 + sys exit +1: + <?\n> + +vcboot: + mov $20000,sp + jsr r5,dtio; 1; 20000; -20000; 5 + jsr r5,drio; 3; 140000; 20000; -20000; 3 + jsr r5,dtio; 33.; 20000; -20000; 5 + jsr r5,drio; 3; 160000; 20000; -20000; 3 + jsr r5,drio; 3; 140000; 54000; -2000; 5 + jmp *$54000 + +tcdt = 177350 +tccm = 177342 +dtio: + mov $tcdt,r0 + mov $tccm,r1 + mov $3,(r1) / rn-f +1: + tstb (r1) + bge 1b + tst (r1) + blt 0f + cmp (r5),(r0) + beq 2f + bgt dtio +0: + mov $4003,(r1) / rn-b +1: + tstb (r1) + bge 1b + tst (r1) + blt dtio + mov (r0),r2 + add $5,r2 + cmp (r5),r2 + bgt dtio + br 0b +2: + tst (r5)+ + mov (r5)+,-(r0) + mov (r5)+,-(r0) + mov (r5)+,-(r0) +1: + tstb (r0) + bge 1b + tst (r0) + bge 1f + sub $8.,r5 + br dtio +1: + mov $1,(r0) / sat + rts r5 + +dae = 177470 +drio: + mov $dae+2,r0 + mov (r5)+,-(r0) + mov (r5)+,-(r0) + mov (r5)+,-(r0) + mov (r5)+,-(r0) + mov (r5)+,-(r0) +1: + tstb (r0) + bge 1b + tst (r0) + bge 1f + sub $10.,r5 + br drio +1: + rts r5 + +tape: + +disk: + + +files: + + + + + + + + + + <\0> + .even +fi: .=.+2 +fo: .=.+2 +buf: .=.+512. diff --git a/fs/usr/x b/fs/usr/x new file mode 100755 index 0000000..0067295 --- /dev/null +++ b/fs/usr/x @@ -0,0 +1,5 @@ +tap x\ +./fort/fc1\ +./fort/fc2\ +./fort/fc3\ +./fort/fc4