Warren Toomey
9483300758
sys status returns 13 words, the last one holds the i-number.
2016-03-18 19:47:05 +10:00
Warren Toomey
b8b1ac5d95
I changed ls to have a directory as an optional argument.
...
This allows it to work when we don't have .
2016-03-18 10:25:45 +10:00
Warren Toomey
fbbe0c6729
Added command line options to enable . and ..
2016-03-17 09:08:37 +10:00
Warren Toomey
3c3f946794
Added hello to the proto file.
2016-03-16 11:38:09 +10:00
Warren Toomey
320dd0418f
Add missing dput to .rename
2016-03-16 11:24:56 +10:00
Warren Toomey
bb0a7084b3
More kernel build comments.
2016-03-16 09:52:16 +10:00
Warren Toomey
248dfafe0d
Change tti to the new unix format, and let the kernel boot up.
2016-03-16 09:48:10 +10:00
Warren Toomey
9f536032b0
Fixed stat so it works.
2016-03-16 09:42:44 +10:00
Warren Toomey
202fbcefb6
Fixed ln to have three arguments. Use stdout not stderr.
2016-03-16 09:22:06 +10:00
Warren Toomey
5f1229cb9c
Tidy up.
2016-03-16 06:55:09 +10:00
Warren Toomey
6c5b207aba
I uncommented Phil's code so that we can run binaries from system now.
2016-03-16 06:38:56 +10:00
Warren Toomey
e5bcd5c264
More comments
2016-03-16 06:22:12 +10:00
Warren Toomey
1bee26fba1
Fixed the daynum value in the date output.
2016-03-16 06:17:39 +10:00
Warren Toomey
f64b3f0799
Added code to skip over directory entries with i-num zero.
2016-03-16 06:08:53 +10:00
Warren Toomey
b4891828de
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-16 05:37:25 +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
fe6c5cc8eb
Updated the top-level Readme.
2016-03-14 21:52:25 +10:00
Warren Toomey
f3519fc34b
More build notes.
2016-03-14 21:24:13 +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
5f55b5dc79
More notes on bringing up the kernel.
2016-03-14 21:04:57 +10:00
Warren Toomey
4073baba05
Fix transcription error in s2.s link.
2016-03-14 20:19:48 +10:00
Warren Toomey
cbdcf268f7
More kernel notes.
2016-03-14 19:53:00 +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
cd7befb2de
More kernel comments: link.
2016-03-14 18:26:36 +10:00
Warren Toomey
cfa57f16b3
More kernel comments: partial comments for namei.
2016-03-14 17:50:13 +10:00
Warren Toomey
6ffdf4076d
More kernel comments: iget
2016-03-14 17:40:46 +10:00
Warren Toomey
77c30047e9
Get the build Makefile to output a kernel symbol table.
2016-03-14 16:51:25 +10:00
Warren Toomey
7b5cd4a135
Changed init.s so that the new as7+cpp can process it.
2016-03-14 10:54:06 +10:00
Warren Toomey
588e2a30b8
More kernel notes.
2016-03-13 21:14:16 +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
Warren Toomey
98145f562a
More kernel notes.
2016-03-13 15:11:19 +10:00
Warren Toomey
d4e01c7da6
More kernel notes.
2016-03-13 14:43:38 +10:00
Warren Toomey
4860c0a8b0
I've commented out some of the code in s7.s to try and disable the
...
Graphics-2 I/O operations.
2016-03-13 14:36:33 +10:00
Warren Toomey
ba3b33d7da
There seems to be a transcription error in s7.s, I fixed by eyeballing
...
the scans.
2016-03-13 13:21:25 +10:00
Warren Toomey
4a51b4e6bb
Added a notes file to store details of the attempts to bring up
...
the kernel.
2016-03-13 13:14:11 +10:00
Warren Toomey
cff237d445
Added dir.5 and filesys.5 manuals.
2016-03-13 09:58:18 +10: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
Warren Toomey
97f29f046c
Moved proto and password to build/
2016-03-11 10:30:05 +10: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
947d44a681
I've used Phil's instructions to set up a build area with a Makefile.
...
You can run make build from the top to build things.
2016-03-10 17:02: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
Warren Toomey
19f13c8107
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-10 15:29:14 +10:00
Warren Toomey
7e7b05ce17
I've created an area so that we can test kernel mode code in SimH.
2016-03-10 15:28:42 +10:00
Warren Toomey
e28c9f1ee7
check.s comments
2016-03-10 15:06:08 +10:00
Warren Toomey
ca13ce503e
Fixed some typos in check.s
2016-03-10 14:21:10 +10: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
Warren Toomey
739d317415
More readme tweaks.
2016-03-10 10:26:52 +10:00
Warren Toomey
3952727b0b
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-10 10:23:04 +10: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
Warren Toomey
3be45d4383
Moved opr.s to src/other as it is not a proper utility and wasn't in the scans.
2016-03-09 06:48:37 +10:00
Warren Toomey
10ab3acbc9
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-09 06:48:15 +10:00
Warren Toomey
3cb05b5767
Added Phils opr.s and kernel notes files
2016-03-09 06:47:48 +10:00
Warren Toomey
c65a5587fb
Comments to kernel files by Phil.
2016-03-09 06:45:44 +10:00
Warren Toomey
286acea85b
With src/cmd/as.s modified to use als (because a7out is broken) and removing
...
the definitions of . and .. from wktopr.s, I can now assemble cat.s with
the PDP-7 as and execute the resulting a.out file!
2016-03-08 20:05:14 +10:00
Warren Toomey
77505026ae
I made my own opr.s with definitions for . and .. and now the native
...
PDP-7 as can assemble cat.s. I haven't checked the output yet.
2016-03-08 19:03:28 +10:00
Warren Toomey
10a0983cc4
as.s typo.
2016-03-08 18:47:14 +10:00
Warren Toomey
e652be0b14
Added date manual.
2016-03-08 17:07:49 +10:00
Warren Toomey
7ab65c4727
Added a runsh option to the Makefile
2016-03-08 16:56:54 +10:00
Warren Toomey
07a098cb53
Changed the top-level Makefile to make date and to use the new ptr format
...
for the binaries.
2016-03-08 16:46:39 +10:00
Warren Toomey
e9c8aae876
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-08 16:43:47 +10:00
Warren Toomey
5877df91e8
Finally, date works, and I've also written a decimal conversion routine
...
in sys/other.
2016-03-08 16:42:46 +10: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
Warren Toomey
a7f040b8f5
Added a div instruction and changed some of the debug outputs in a7out.
2016-03-07 20:12:40 +10:00
Warren Toomey
54947581cd
I wrote a simple routine to print out numbers in decimal.
2016-03-07 17:56:53 +10:00
Warren Toomey
cfafcad963
a7 is updated with Phil's stdin reading patch. I've written a few more
...
utilities and modified the v1 man pages for them. Fixed a typo (missing
line) in src/cmd/as.s.
2016-03-07 16:17:57 +10:00
Warren Toomey
42636a83e3
Added ls.1 manual.
2016-03-07 06:26:15 +10:00
Warren Toomey
cea7025679
Updated .gitignore
2016-03-07 06:22:10 +10:00
Warren Toomey
ca5347f161
Top-level Makefile: make it a bit more like V1 Unix.
2016-03-07 06:21:08 +10:00
Warren Toomey
10befe6cc4
Warren's ls now has -l argument which prints out lines in long format!
2016-03-04 21:56:46 +10:00
Warren Toomey
c8ac75f371
Added a dprintf which I forgot.
2016-03-04 15:37:04 +10:00
Warren Toomey
6f3008e8bd
I've gobe for my own mul algorithm for now, and it seems to work for small
...
positive integers, but it probably needs fixing.
2016-03-04 15:29:37 +10:00
Warren Toomey
807fb56d35
I've added the idiv and mul instructions which are needed by the original PDP-7.
...
However, these are completely untested at the present!
2016-03-04 15:15:57 +10:00
Warren Toomey
575163a35a
I wrote a test for the octal conversion routine, and I updated ds.s
...
with the comments that I wrote for the octal conversion.
2016-03-04 14:34:25 +10:00
Warren Toomey
5b9ecc343d
I didn't mean to check the stuff in bin!
2016-03-04 14:17:42 +10:00
Warren Toomey
e928dbf7b6
Added the bin directory for assembled programs.
2016-03-04 13:41:16 +10:00
Warren Toomey
218e060a55
I've added the seek() system call to a7out. I've also added some heuristic code
...
to detect if file output is "binary" or ASCII and to write the file correctly.
Mind you, the heuristic can fail :-( The original cp can now copy ASCII and
binary files.
2016-03-04 13:39:38 +10:00
Warren Toomey
154039a9ee
Merge remote-tracking branch 'origin/master'
2016-03-04 13:05:04 +10:00
Warren Toomey
451a58fc58
I've added code to detect binary PDP-7 files to a7out. This is needed
...
for doing the seek() and tell() syscalls which are next to do.
2016-03-04 13:03:42 +10:00
Warren Toomey
51ad7db306
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
2016-03-04 08:31:45 +10:00