(1) Use a temporary directory to unpack the shars. Subdirectories bin,
commands, kernel, kernel/db, lib, lib/IBM_PC and tools will be created
if necessary.

(2) Move the db subdirectory the real kernel and cd to it.

(3) Make db.com. This makes a DOS version of db which can be tried out
immediately. The DOS version is much simpler to make because it can use
better documented hooks into the system and doesn't implement symbol
tables. It is a TSR program with hotkey CTRL-ALT-LEFTSHIFT. Run it and
try the hotkey and ESC a few times. This had better work or the
installation is not worth proceeding with. DOS's above 3.0 at least are
reentrant enough to give no trouble.

(4) Make. This compiles the db files not used in the DOS version.

(5) Move up to the kernel directory and move all the kernel files from
the temporary directory. Apply the diffs for console.c and makefile only.
(You can apply all the diffs discussed below if you want. The step by
step approach is to show the dependencies and make things simpler if
something goes wrong.) The diffs are relative to 1.3c. Older versions
will need minor editing. Re-make the kernel. Note it is _much_ bigger
and has to be separate I&D.

(6) Boot with the new kernel. Everything should be as usual except the F10
key should enter db and the big kernel may leave too little space for some
programs. A RAM disk inside 640K can't really be afforded with db. Try F10
and ESC a few times. db should be fully operational now except no symbol
tables have been loaded, save() and restart() can't be traced, and initial
entry via F10 is essential for correct initialization.

(7) Replace head.s in the appropiate lib directory and/or lib/IBM_PC, and
recompile mm, fs and init. This just gives them the necessary extra initial
stack space and they remain compatible with old kernels. Put symbols tables
in them at the same time, like the new kernel makefile does it.

(8) Patch kernel/const.h. Make -t so everything doesn't get recompiled.
Patch kernel/main.c and kernel/mpx88.s. Re-make the kernel.

(9) Try out the new kernel. Everything should be safe now but there are
no symbols.

(10) Patch tools/bootblok.s and tools/build.c and make bootblok and build.
Use the new build to make an image with symbols.

(11) Try out the new kernel. Inspect the symbol tables for each piece of
the system.

(12) Compile commands/mung.c and put the resulting mung with mungmon in
/usr/bin. These are used to put a breakpoint early in a user program. Try
this. mungmon may need editing to put the binary elsewhere than/usr/tmp.
