Warren Toomey
f63ad33d10
This is the beginnings of a alternative version of the PDP-7 Unix
...
system which corresponds to a later development point, around mid-1971,
where the system had lost the "dd" directory and gained . and ..
entries. This is close to the system as described in
http://www.tuhs.org/Archive/PDP-11/Distributions/research/McIlroy_v0/UnixEditionZero.txt
except there are no pathnames.
To use this version: cd build; make alt; make altrun
2016-03-21 14:28:50 +10:00
Warren Toomey
b9fa7fb4fb
Fix up the link count code.
2016-03-19 14:37:23 +10:00
Warren Toomey
e44bc6daa3
Added note about fsck7.
2016-03-19 07:27:18 +10:00
Warren Toomey
b232a4b1a6
Added simple code coverage output to a7out. Added a few ed comments.
2016-03-19 07:25:07 +10:00
Warren Toomey
17a828cfcd
mkfs: I moved the order of ., .. and dd around to me more pleasing to the eye. I also
...
added some simple link count code.
2016-03-19 06:25:20 +10:00
rswier
c35b1e2add
Replace badd/uind with vector
...
vector instruction now used for array referencing. I had overlooked it.
Also, minor cleanup.
2016-03-18 01:33:47 -04:00
Warren Toomey
fbbe0c6729
Added command line options to enable . and ..
2016-03-17 09:08:37 +10:00
rswier
b3b868ed50
Ported B compiler b.c to b.b.
...
Ported B compiler b.c to b.b. It is able to compile itself. Hints are
in the comment block.
2016-03-16 01:46:35 -04:00
Warren Toomey
320dd0418f
Add missing dput to .rename
2016-03-16 11:24:56 +10:00
Warren Toomey
00c2de0292
I bit the bullet and implemented "." in the filesystem. I've changed the proto
...
file to put the binaries in system. I added a few more checks to fsck, and I fixed
a few bugs in src/other/wktls.s.
2016-03-16 05:36:22 +10:00
Warren Toomey
56f6da9cd8
New tool fsck7
2016-03-15 15:49:40 +10:00
Warren Toomey
624776e0f3
Argh. A real dumb bug in mkfs7 that stopped us getting a shell. Fixed.
2016-03-14 21:22:29 +10:00
Warren Toomey
9da0484a39
I've got init past the link, but it then dies on the open("sh") immediately
...
after that. Yes, dd has to be i-num 4. I've modified mkfs7 and the proto
file to allow this to occur. I've also make link counts negative.
2016-03-14 19:49:37 +10:00
Warren Toomey
3629461a20
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-13 21:09:33 +10:00
Warren Toomey
8b421eb27b
I've commited a change to as7 to use the C pre-processor. Not sure if it's
...
to everybody's taste.
2016-03-13 21:08:43 +10:00
rswier
a7b4608711
B compiler update
...
More progress
2016-03-13 03:41:14 -04:00
Warren Toomey
1829f8577f
Added graphviz output to xref7 so that we can see the call graph.
2016-03-13 07:27:29 +10:00
Warren Toomey
abf5ae6149
Also print out the routine's filename in xref7.
2016-03-12 22:53:33 +10:00
Warren Toomey
ffb6676a39
I wrote a very simplistic tool to generate kernel cross references.
2016-03-12 22:37:37 +10:00
Warren Toomey
f3dad7916b
Clean up comments.
2016-03-11 22:31:40 +10:00
Warren Toomey
e7d04b5dee
Added Readme comment
2016-03-11 22:27:06 +10:00
Warren Toomey
fed0d959b7
Replace numeric literal with constant.
2016-03-11 22:18:04 +10:00
Warren Toomey
e5457d15fb
I've added code to mkfs7 to build a free block list, to write it out to
...
the disk image, and to add a pointer in block zero to the beginning of
the list.
2016-03-11 22:00:25 +10:00
Warren Toomey
bfeb833141
Added sdump tool, added a coldboot option to build/Makefile, added a few
...
kernel comments.
2016-03-11 16:00:10 +10:00
rswier
c62890ab56
B compiler development
...
More stuff working.
2016-03-11 00:29:01 -05:00
Warren Toomey
97f29f046c
Moved proto and password to build/
2016-03-11 10:30:05 +10:00
Phil Budne
758a8952ea
mkfs7: update directory inode i.size when appending a dnode
2016-03-10 18:39:31 -05:00
Warren Toomey
becb1f4996
So, SimH stores things big-endian. Fixed mkfs7.
2016-03-11 07:04:53 +10:00
Warren Toomey
8d487fee5c
Off by 1 errors in mkfs7, now fixed.
2016-03-11 06:57:46 +10:00
Warren Toomey
86135be03e
More mkfs changes as Phil tries to get the kernel up to reading init.
2016-03-10 16:48:12 +10:00
Warren Toomey
7daa5f7a64
Get mkfs7 to write 8000 empty blocks to fill the bottom half before the
...
real filesystem in the top half.
2016-03-10 16:36:45 +10:00
Warren Toomey
436929b83c
Changed the filesystem proto file and enhanced the mkfs7 tool based on
...
Phi's analysis of the filesystem.
2016-03-10 16:04:35 +10:00
Phil Budne
d7d7d592d7
fix "rim" format
2016-03-10 00:11:20 -05:00
Warren Toomey
089c8b806f
I made a change to the word2ascii routine and replicated it out to other programs.
2016-03-10 14:14:57 +10:00
Warren Toomey
f468628159
Fixed a small i-node calculation bug, and added more debug messages.
2016-03-10 14:11:22 +10:00
Warren Toomey
e784132ba4
Added better debugging output, fix a bug converting ASCII to words.
2016-03-10 13:28:02 +10:00
Warren Toomey
4b90522231
Fix list output logic.
2016-03-10 12:56:51 +10:00
Warren Toomey
3ef14fa6f6
Oops, I forgot to actually write the file contents into the filesystem image.
2016-03-10 12:54:46 +10:00
Warren Toomey
d1b995e771
I've written more of mkfs7 but not tested it yet.
2016-03-10 12:46:00 +10:00
Tom Everett
587d0a3733
added a readme for the tools
2016-03-09 18:05:08 -07:00
Warren Toomey
6ecf5da1a3
Updated README.md
2016-03-10 10:22:40 +10:00
Warren Toomey
2880d1b2e4
I've made a start on a mkfs tool for PDP-7 Unix. So far I have the routines
...
to build the filesystem, but they are not tested. I need to add code to
parse the "proto" file, whose syntax is based on the 6th Edition proto file.
I also need to dump out the filesystem image.
2016-03-10 09:53:05 +10:00
Warren Toomey
0517b7c2fc
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-10 07:44:54 +10:00
Warren Toomey
b03cc44290
Fixed up the llss instruction in a7out.
2016-03-10 07:44:31 +10:00
rswier
f36928ff9f
B compiler
...
Very preliminary B compiler. Only able to compile hello.b and not
tested further. This is implemented in a subset of C that will
hopefully ease porting itself to B.
2016-03-09 04:29:52 -05:00
Phil Budne
9c8cc278a4
fix smes comment block (copied from pbsh.s)
2016-03-07 17:58:09 -05:00
Phil Budne
5f735f6ba4
3dump: handle 0200 bit set on all "frames"
2016-03-07 17:29:23 -05:00
Phil Budne
38ff8aec09
a7out: changes for shell
...
handle "ptr" format executable files
tty read always returns only one character
add shell-compatible "smes" behavior
2016-03-07 17:27:31 -05:00
Warren Toomey
2d9157f4e6
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-08 06:48:27 +10:00
Warren Toomey
77ba9809e7
Fixed a small tty handling bug.
2016-03-08 06:48:06 +10:00