I think I've figured out the entry points into the #KWIC source code. Across the...

@philcowans@universeodon.com

I think I've figured out the entry points into the #KWIC source code. Across the code there are two TCD and one END pseudo operations. These insert cards which will be interpreted by the loader as 'stop loading cards and jump to this address'. I think this means that there's a bootstrap process, i.e. the first part is loaded and executed, which includes code to load and execute the second part, which in turn includes code to load and execute the third part. There are comments in the code which are consistent with it including a bootstrap mechanism. The entry symbols are:

COMNC
GENSS
STASS

It looks like COMNC calls routines called READ and SORTX, which make sense, but it also suggests that the remainder might be just output generation.

GENSS makes less sense; it quickly gets to an instruction which transfers to GETACARD, which isn't defined and isn't even a valid symbol, as it's too long. Clearly something I don't understand here.

STASS makes multiple calls into routines called EDIT and WOT. I have a feeling that the latter of these may be short for Write Output Tape.

#IBM #SAS #retrocomputing #vintagecomputing #computerhistory