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.
Warren Toomey2016-02-29 16:47:13 +10:00
eb54325ad5
Merge pull request #10 from decuser/master
Warren2016-02-29 10:25:00 +10:00
43d1349b75
changes based on scan compare
Will Senn2016-02-28 17:50:48 -06:00
f06853e09b
Merge pull request #9 from philbudne/master
philbudne2016-02-28 16:32:06 -05:00
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.
Warren Toomey2016-02-29 06:40:15 +10:00
ed80a93a08
tools/a7out: I added another 7 instructions, but I haven't tested them yet.
Warren Toomey2016-02-27 21:55:12 +10:00
5cd48e18e1
Oops, it's late. Let's fix up the misspelt Novells :-)
Warren Toomey2016-02-27 21:26:22 +10:00
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.
Warren Toomey2016-02-27 21:18:51 +10:00
d714b8b84c
Transcribed all of 07-13-19.pdf
rswier2016-02-27 05:29:09 -05:00
f261cd5da8
The scan shows this as chowner with scribble over the last two letters
nw2016-02-27 20:44:48 +11:00
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.
Warren Toomey2016-02-27 11:12:16 +10:00
fafeae7470
I've rewritten tools/a7out to have the correct PDP-7 Unix command line memory storage convention, and I've rewritten tools/wktcat.s to deal with this. I've imported some code from the real cat.s and now wktcat.s actually works as per the real cat.s.
Warren Toomey2016-02-27 10:49:43 +10:00
c26be91da1
Merge pull request #5 from philbudne/master
philbudne2016-02-26 18:03:30 -05:00
d322c2b70e
Added my pass at hand-OCRing the s1-s9 kernel source.
Josh Dersch2016-02-26 14:15:31 -08:00
d2511c36c0
I'm trying to bring my wktcat.s file into line with the real one. I've refactored tools/a7out to have a dprintf() function to printf only on debugging. I still need to rewrite the command-line arg storage structure.
Warren Toomey2016-02-27 08:05:52 +10:00
fc0d2c2b31
new files: sop.s maksys.s trysys.s (last in 01-s1.pdf)
Phil Budne2016-02-26 16:25:03 -05:00
5ae326c444
Merge pull request #3 from philbudne/master
philbudne2016-02-26 14:16:53 -05:00
e022dbecfc
system: update Readme, fix typos
Phil Budne2016-02-26 14:15:12 -05:00
d6d4c9b814
According to cat.s, fd 8 is standard error (not fd2!). I've updated the a7out simulator to have STDERR on fd 8.
Warren Toomey2016-02-26 22:37:03 +10:00
536de9ea56
I worked out the bug with the command-line arguments, I was overwriting 017777, oops. I've added more comments to wktcat.s (renamed from simplecat.s). Now we need to find out how the real PDP-7 Unix does command line arguments.
Warren Toomey2016-02-26 21:26:44 +10:00
8f8cc64d10
I've added tad and sza to the a7out simulator, and I also added some code to place command-line arguments into the simulated memory. I'm trying to write my own version of cat so I can compare mine to the real one. Right now there's a bug when simplecat has two arguments. Zero and one arguments are OK! Saving so I have a backup before proceeding.
Warren Toomey2016-02-26 20:56:31 +10:00
6066798c25
Transcribed from 05-1-4.pdf
rswier2016-02-26 04:20:39 -05:00
b8550475b0
I've got a very simple cat program working, which reads from stdin and sends it to stdout.
Warren Toomey2016-02-26 18:43:20 +10:00
ba80514cbd
Remind people to put in the page numbers and filenames!
Warren Toomey2016-02-26 17:35:58 +10:00
32660b5beb
Merge pull request #1 from rswier/master
Warren2016-02-26 17:24:59 +10:00
12c581248f
Merge pull request #2 from philbudne/master
Warren2016-02-26 17:24:32 +10:00
2cca3d4473
finish s1.s; tried to clean up s5-s8; let as7 continue after error
Phil Budne2016-02-25 20:58:17 -05:00
cc79da86a5
transcribed from 06-5-12.pdf
rswier2016-02-25 20:16:59 -05:00
d213ce5727
transcribed from 06-5-12.pdf
rswier2016-02-25 20:13:43 -05:00
e5d2831b33
transcribed from 06-5-12.pdf
rswier2016-02-25 20:10:20 -05:00
08f0bea8d0
transcribed from 08-rest.pdf
rswier2016-02-25 20:06:07 -05:00
09f1418307
transcribed from 08-rest.pdf
rswier2016-02-25 20:02:37 -05:00
f576fb5529
removed trailing carriage returns, also this was transcribed from 04-cas.pdf, not 04-cas.txt
Will Senn2016-02-25 18:52:02 -06:00
5616e1b20a
cas.s transcribed from 04-cas.txt
Will Senn2016-02-25 18:49:52 -06:00
0b0ea2e637
typed in files s5-s9 from 01-s1.pdf
Phil Budne2016-02-25 18:59:46 -05:00
c84b2dffdd
I've changed the assembler so that it groks the <ab> string literal syntax. I think it's OK, but it probably needs more testing. write_test.s was changed to exercise the string parsing.
Warren Toomey2016-02-26 07:35:36 +10:00
018af6f43e
Ken Thompson sent e-mail in to explain that there can be labels mid-line, such as
Warren Toomey2016-02-26 06:52:43 +10:00
f9b8c8eeb2
Changed as7 to allow sys open statements, rewrite write_test.s to use this syntax, and fixed up a bug in sys_open in a7out.
Warren Toomey2016-02-26 06:19:27 +10:00
4b9f851a84
Explain how to assemble and run the program.
Warren Toomey2016-02-25 18:50:00 +10:00
45fb97e051
An assembly program to test the a7out user-mode simulator. Expext its contents to change often as a7out is written.
Warren Toomey2016-02-25 18:47:17 +10:00
cc678483e1
I've added read() now, but I haven't tested it fully yet.
Warren Toomey2016-02-25 18:43:44 +10:00
b463500f37
I've got a few system calls working: open, close, write, exit along with the instructions dac, lac, iot and hlt. I can print Hello, world\n, yay!
Warren Toomey2016-02-25 18:12:57 +10:00
e3815482a3
First few pages of the s1 section of the kernel typed in. I've added some cruft at the bottom so that I can test my assembler. I'll take that out later.
Warren Toomey2016-02-25 07:37:59 +10:00
ba69e4e3e7
Miscellaneous notes about the assembler format and useful URLs.
Warren Toomey2016-02-25 07:37:15 +10:00
550f6486ee
Hopefully a more readable layout on the Github web site.
Warren Toomey2016-02-25 07:05:29 +10:00
ecdd711b46
More details of the layout of the repository.
Warren Toomey2016-02-25 07:03:59 +10:00
6e5986d1c7
First version of the file to document what scans are done.
Warren Toomey2016-02-25 07:01:20 +10:00
73ea3c665b
Hand-typed version of the cat source code with my own comments to explain what it is doing.
Warren Toomey2016-02-25 06:56:04 +10:00
07c95bbe15
I commented out most of the debug lines, and I now output the octal code along with the input line that generated it. There is code to use values of defined constants as well as defined labels.
Warren Toomey2016-02-24 13:25:24 +10:00