Commit Graph
100 Commits
Author SHA1 Message Date
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
Warren Toomey 2261144ea2 Fixed up the llss code in a7out, so now the octal printing code in ds.s works. 2016-03-04 08:31:15 +10:00
Warren Toomey ffbc0b1dab Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix 2016-03-03 19:48:03 +10:00
Warren Toomey d3f6924a9c I fixed a few typos in ds.s and I made a pretend llss instruction in a7out. 2016-03-03 19:46:34 +10:00
Warren Toomey d33ce4c69f Based on the details of the directory structure that Phil found, I've
modified the a7out and the wktls.s program to reflect this.
2016-03-03 16:35:05 +10:00
Warren Toomey 336e0c1118 Updated the top-level README with current details. 2016-03-03 15:38:02 +10:00
Warren Toomey 72473c411b I've written some code for the sys status syscall in a7out but I've not tested it yet. 2016-03-03 14:15:35 +10:00
Warren Toomey dd5e5bc2b3 Updated Makefile with the ls binary 2016-03-03 13:42:22 +10:00
Warren Toomey 2b9d2942d3 Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix 2016-03-03 13:37:26 +10:00
Warren Toomey 9cc938bfe6 I've written a simple ls program that actually works :-) 2016-03-03 13:36:35 +10:00
Warren Toomey 553aa31967 Even thought we don't really know the directory structure yet, I've written
code to allow a directory to be read. We can change it as required.
2016-03-03 13:13:52 +10:00
Warren Toomey aecf2cc4af Added some more comments to ds.s 2016-03-03 12:54:07 +10:00
Warren Toomey 747d1f4466 Added the time system call as per the draft of the CACM paper. 2016-03-03 12:12:18 +10:00
Warren Toomey e9398b2bd0 Added more comments to sys/cmd/init.s. 2016-03-03 11:27:20 +10:00
Warren Toomey 0314dff3c6 Added getuid and setuid syscalls to a7out. 2016-03-03 11:09:55 +10:00
Warren Toomey 02a0253afc Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix 2016-03-03 10:47:43 +10:00
Warren Toomey 7b9d907902 Fixed the a7out smes/rmes bug, they work now. 2016-03-03 10:47:07 +10:00
Warren Toomey 97407ef507 I added smes and rmes system calls to a7out and wrote some code
in src/other/fork_test.s to test it. It's not working quite right
yet, we keep getting wait() returning -1 in a7out even though there
is a child process.
2016-03-03 10:14:04 +10:00
Warren Toomey 782f677a34 Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix 2016-03-03 09:52:40 +10:00
Warren Toomey a351a527e6 Added more init.s comments 2016-03-03 09:52:17 +10:00
Warren Toomey 6547aa98be I've added fork() to a7out after adding some comments to src/cmd/init.s.
There is a test program to demonstrate fork working.
2016-03-03 09:23:48 +10:00
Warren Toomey c7a4209c6b Updated Makefile as as7 useage has changed. 2016-03-02 20:50:55 +10:00
Warren Toomey 11d660688b More git notes. 2016-03-02 20:45:08 +10:00
Warren Toomey 9c79bbb15d Oops, didn't initialise $mode properly. 2016-03-02 20:42:45 +10:00
Warren Toomey dc2d2dd63b Phil's change to as7 to implement RELATIVE flag. He says:
seems to assemble cat.s and kernel reasonably...
   (famous last words)
I've updated a7out to use the same starting location. It runs cat.s OK.
2016-03-02 20:38:00 +10:00
Warren Toomey 14a2a9b10b I've updated the top-level Makefile to build all the existing utilities.
I've borrowed the V1 manuals from
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1
and changed them to reflect the PDP-7 utilities.
2016-03-02 19:39:41 +10:00
Warren Toomey 152fc23c6b Added some notes about recovering deleted git files. 2016-03-02 18:42:43 +10:00
Warren Toomey d1a6bf8a39 Hah, I worked out how to bring as7 back. Sorry Phil! 2016-03-02 18:41:39 +10:00
Warren Toomey 03cb447f95 Fixed a typo in src/cmd/chrm.s 2016-03-02 18:33:38 +10:00
Warren Toomey c073aee196 Added unlink and chdir syscalls to a7out 2016-03-02 18:31:25 +10:00
Warren Toomey 9fcffe7e43 Merge remote-tracking branch 'origin/master' 2016-03-02 18:00:56 +10:00
Warren Toomey bcb2cb0f15 local changes. 2016-03-02 17:59:34 +10:00
Warren Toomey a3d6090fe7 tools/as7: added syscalls chmod and chown, added auto-increment
locations, fixed a bug in character input, added several EAE
instructions. We now have cp.s, chmod.s and chown.s working.
2016-03-02 17:55:33 +10:00
Warren Toomey 5bda1307c9 Moved my non-scanned programs into src/other. 2016-03-02 06:30:25 +10:00
Warren Toomey 51ab2cee19 Added a top-level makefile so that we can build things quickly. 2016-03-02 06:29:41 +10:00
Warren Toomey 02eeb59977 tools/a7out: Added the creat() system call. 2016-03-02 06:14:12 +10:00
Warren Toomey 2af2802335 I've moved these working programs into the src/other folder as they are
not strictly tools.
2016-03-01 20:28:24 +10:00
Warren Toomey a2e8a187b2 tools/a7out: I took out the code to pretend to deal with binary files,
and I did a perltidy to reformat the code.
2016-03-01 18:28:37 +10:00
Warren Toomey cd60f962c0 I found the type in cat.s and now original PDP-7 cat works with a7out! Yay! 2016-03-01 17:58:01 +10:00
Warren Toomey e0557be899 src/cmd/cat.s: lots more comments added to the code. 2016-03-01 17:20:41 +10:00
Warren Toomey 145725ba4c Warren's version of a cp command. 2016-03-01 16:57:40 +10:00
Warren Toomey 73c066ae9d I've restructured the opr code and the add code using the SimH logic
and I fixed up some bugs with the new command interpreter. I'm getting
so close to cat.s working!
2016-03-01 16:55:03 +10:00
Warren Toomey 220f87efed Rewording of the a7out help text. 2016-02-29 17:10:25 +10:00
Warren Toomey 714de5a7e1 I've added a single-step mode to tools/a7out and rationalised the debug output.
Some small changes to src/cmd/cat.s and wktcat.s to reflect the correct number
of arguments to open. Typos fixes to src/cmd/cat.s.
2016-02-29 16:47:13 +10:00
Warren Toomey 63223cfa7c Now that the PDF files have been transcribed and scanned in, I've moved
copies of them over into the src/ area so that we can add comments and
make other changes, while keeping the original OCR'd ones intact.
2016-02-29 06:40:15 +10:00
Warren Toomey ed80a93a08 tools/a7out: I added another 7 instructions, but I haven't tested them yet. 2016-02-27 21:55:12 +10:00
Warren Toomey 5cd48e18e1 Oops, it's late. Let's fix up the misspelt Novells :-) 2016-02-27 21:26:22 +10:00
Warren Toomey 6d4bcda587 I've updated some of the Readme file to clarify that the code from the
scanned pages is owned by Novel and they have copyright on it. Everything
else is GPLv3.
2016-02-27 21:18:51 +10:00
Warren Toomey ea7cd8da28 tools/a7out: Added the jms instruction. 2016-02-27 15:55:40 +10:00
Warren Toomey bc8caf1577 Merge remote-tracking branch 'origin/master' 2016-02-27 15:32:41 +10:00
Warren Toomey da58308ae4 src/cmd/cat.s: More comments added, but still more to add. 2016-02-27 15:30:38 +10:00
Warren Toomey 8a8611c590 misc/git_notes.txt: How to fetch from Github and review the changes before merging. 2016-02-27 15:24:59 +10:00
Warren Toomey ea11773db7 tools/a7out: Add the law instruction and change some numeric literals to
named constants.
2016-02-27 15:24:01 +10:00
Warren Toomey 4ee2619b8c I refactored tools/wktcat.s to lose the repeated code, and I also
improved the comments in the code. I'm happy with it, now.
2016-02-27 11:12:16 +10:00