Phil Budne
efb135bc10
as7: "rim" now means "hardware read-in" (contiguous memory with no overhead)
2016-03-25 00:39:50 -04:00
Phil Budne
2b7ff69251
clarify WHICH "Read In Mode" we mean!
2016-03-24 22:16:46 -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
Warren Toomey
9f30359c56
Added some code to print out ASCIi characters in each word.
2016-03-24 17:50:47 +10:00
Warren Toomey
bd13e31f4e
Added a -k option to mkfs7 so that it can write a kernel image in PTR
...
format to track 80 on the disk.
2016-03-24 17:24:48 +10:00
Warren Toomey
441fe12b0a
Fall into single-step mode if we see a low memory write.
2016-03-24 08:57:51 +10:00
Phil Budne
1e19b29abd
add return values to main to make it Makefile compatible!
2016-03-23 10:31:57 -04:00
Warren Toomey
851f03a50a
mkfs7: Fixed a bug in indirect blocks.
2016-03-23 21:15:07 +10:00
Warren Toomey
c2cbf1ff3c
Oops, don't print out allocated blocks in mkfs7 if we didn't allocate any.
2016-03-23 13:41:17 +10:00
Warren Toomey
7fcf1d230c
I added a way for a file to be given a specific i-number, needed for i-num 1.
2016-03-23 11:25:22 +10:00
Phil Budne
9175bf8931
remove unused variable
2016-03-22 20:24:41 -04:00
Phil Budne
156f5f1796
Phil's mods to a7out: read namelist file(s); symbolic input/output
2016-03-22 20:09:36 -04:00
Phil Budne
2b4aeb3bab
as7: make I/II/filename output match as.s behavior
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
Warren Toomey
59bde619e5
Here is a simple code coverage tool for the kernel, so that we can see
...
what code is not being used at present. Instruction for use are given
as comments at the top of the file.
2016-03-22 06:23:17 +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
b9fa7fb4fb
Fix up the link count code.
2016-03-19 14:37:23 +10:00
Warren Toomey
e44bc6daa3
Added note about fsck7.
2016-03-19 07:27:18 +10:00
Warren Toomey
b232a4b1a6
Added simple code coverage output to a7out. Added a few ed comments.
2016-03-19 07:25:07 +10:00
Warren Toomey
17a828cfcd
mkfs: I moved the order of ., .. and dd around to me more pleasing to the eye. I also
...
added some simple link count code.
2016-03-19 06:25:20 +10: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
fbbe0c6729
Added command line options to enable . and ..
2016-03-17 09:08:37 +10: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
320dd0418f
Add missing dput to .rename
2016-03-16 11:24:56 +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
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
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
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
rswier
a7b4608711
B compiler update
...
More progress
2016-03-13 03:41:14 -04: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
rswier
c62890ab56
B compiler development
...
More stuff working.
2016-03-11 00:29:01 -05:00
Warren Toomey
97f29f046c
Moved proto and password to build/
2016-03-11 10:30:05 +10:00
Phil Budne
758a8952ea
mkfs7: update directory inode i.size when appending a dnode
2016-03-10 18:39:31 -05: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
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
Phil Budne
d7d7d592d7
fix "rim" format
2016-03-10 00:11:20 -05: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