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
rswier
28a98360a4
Successful first run of B interpreter!
...
I hand compiled hello.b into hello.s and assembled with the interpreter
and runtime library:
perl as7 --out a.out bl.s hello.s bi.s
2016-03-07 05:57:30 -05:00
Warren Toomey
54947581cd
I wrote a simple routine to print out numbers in decimal.
2016-03-07 17:56:53 +10:00
Warren
92bef06575
Merge pull request #31 from philbudne/master
...
more shell work; renamed sh.s to pbsh.s
2016-03-07 16:20:56 +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
Phil Budne
e01d1a8700
renamed sh.s to pbsh.s
2016-03-07 00:18:03 -05:00
Phil Budne
8fc1d05ef7
sh.s: more stuff working
2016-03-07 00:16:53 -05:00
Phil Budne
668e4c9cff
set argptr; increment argc by four
2016-03-06 01:36:52 -05:00
Phil Budne
a0e2c74f40
closer to working (fork disabled, chdir not implemented)
2016-03-05 14:13:02 -05:00
Phil Budne
bea558aa93
start of a shell
2016-03-05 10:52:34 -05: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
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
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
9cc938bfe6
I've written a simple ls program that actually works :-)
2016-03-03 13:36:35 +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
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
5bda1307c9
Moved my non-scanned programs into src/other.
2016-03-02 06:30:25 +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