rswier
ce6b5c4887
Cleaned up B run-time
...
Pared down the B run-time to a minimal functionality. This is based on
research decompiling the pdp-11 libb.a run-time.
2016-04-13 05:09:24 -04:00
rswier
22f0d2e99a
Progress on B stuff
...
Setup argv array based on Phil Budne's assembly. Added string and ctype
libraries (untested).
2016-04-01 03:50:19 -04:00
rswier
9a8a4bae17
Working on B printf and argv stuff
2016-03-30 03:47:36 -04:00
Phil Budne
b655c9df57
pbsh.s: try making shell interruptable when reading from a file
2016-03-29 11:04:28 -04:00
rswier
6a40af2f97
String support and more run-time routines
...
This is a work in progress.
2016-03-29 01:49:21 -04:00
Phil Budne
b6009395fa
pbsh.s: Add more comments about how I chose what I did or did not do.
2016-03-28 11:25:56 -04:00
Phil Budne
0358d5bf1c
pbsh.s: prompt comment (cleared if input is regular file)
2016-03-28 09:35:43 -04:00
Phil Budne
d3ccf536c4
pbsh.s: detect if stdin is a regular file using seek
...
seek doesn't fail on special devices, but it always returns zero
2016-03-28 02:07:21 -04:00
rswier
c638044dc0
Begin working on alternate B run-time library
2016-03-25 05:08:43 -04:00
Phil Budne
bb683cd754
pbsh.s: update comments, increase maxargs to 10
2016-03-25 00:28:43 -04:00
rswier
5581e20ade
Allow separate compilation of B files
...
Label namespace change so that separate compilation of multiple B files
is possible.
2016-03-24 05:00:36 -04:00
Phil Budne
c6f7a7799d
start of a paper tape bootstrap to read system from disk
2016-03-24 01:19:29 -04:00
Phil Budne
c8e9e003f4
remove unused labels
2016-03-23 23:54:44 -04:00
Phil Budne
36f09f2519
fix error reporting
2016-03-23 18:33:26 -04:00
Phil Budne
aa234d7de4
Add phil's simple "ls": "lsd dir" lists a directory in dd, "lsl dir": long list
...
(lsl should be a hard link to lsd!)
2016-03-23 15:56:46 -04:00
Warren Toomey
42c7a240ed
I wrote a version of od.
2016-03-23 11:14:01 +10:00
Phil Budne
3c70f48fe8
pbsh.s: read full blocks (readc) so "sh <commands" works!
...
(outputs prompts: I don't see a way to implement "isatty")
2016-03-22 20:07:20 -04:00
Phil Budne
921d8e57cf
pbsh.s: comments
2016-03-22 20:07:20 -04:00
Phil Budne
2d8ee26e03
fixes: handle blank line, 8 character filenames, semi
2016-03-22 20:07:20 -04:00
rswier
9f69fc62da
Cleanup
...
Minor code cleanup
2016-03-21 22:13:32 -04:00
Warren Toomey
5f4e420e63
I converted some of the ls code into routines. No change in functionality.
...
I updated a7out with better sys status handling.
2016-03-22 09:19:30 +10:00
Phil Budne
c1ef96a723
wake up init with smes before exiting
2016-03-21 11:00:18 -04:00
Warren Toomey
b001734e8f
I've moved a copy of my ls.s into alt, so there are no files left with
2016-03-21 16:37:26 +10:00
Warren Toomey
94fd5d49e0
I've restructured the alternative version of PDP-7 Unix so that the
...
source code is now in src/alt. All the files in src/sys and src/cmd
are only annotated versions of the files in scans/.
The build/Makefile has been updated so that it can build the
original PDP-7 Unix or the alternative version.
Phil has fixed the Graphics-2 code, so that there is no need to
have any #ifdef code in the original kernel.
2016-03-21 16:01:36 +10:00
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
6b9151d3e3
Print out an error message if ls is given a name that doesn't exist.
2016-03-20 21:03:53 +10:00
Warren Toomey
d1885214ce
Fixed a bug when we had to skip a direntry with a zero i-num.
2016-03-20 09:26:55 +10:00
Warren Toomey
956bd28ac1
Added the inum field. No idea why it didn't get picked up in the previous
...
two commits.
2016-03-18 19:55:33 +10:00
Warren Toomey
72322c23b2
A few more ls comments.
2016-03-18 19:53:47 +10:00
Warren Toomey
9483300758
sys status returns 13 words, the last one holds the i-number.
2016-03-18 19:47:05 +10:00
Phil Budne
46d6586481
fix chdir typo!
2016-03-18 02:11:37 -04: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
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
Phil Budne
ac94df5d48
update shell comments
2016-03-17 00:08:28 -04: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
3c3f946794
Added hello to the proto file.
2016-03-16 11:38:09 +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
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
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
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
Tom Everett
e3f30f6628
relocated tests
2016-03-08 18:08:30 -07:00
Warren Toomey
3cb05b5767
Added Phils opr.s and kernel notes files
2016-03-09 06:47:48 +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
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
Phil Budne
e18a74300e
pbsh.s: add @/# handling from init.s
2016-03-07 17:22:33 -05:00
Phil Budne
a1930b76d9
renamed sh.s to pbsh.s
2016-03-07 17:22:32 -05:00