AnalyRim internal routines

Following is a bit about the internal programs used in AnalyRim to do operations.
This may help anyone wanting to add functions.

Main program sets up block data and other things. Code to show help pages is
in there too. The help text is in a file in /DK and the help routine just shows
one of the pages of that file.

Assign - sets up to open a file by name, will create if nonexistent.

At -
opens indirect file for *@ command in calc to give commands.

ca2e/ce2a - old encoding routines. At one time the idea was to encode some functions
and cell names using more bits in a byte string to reduce space to store them. These
routines take normal text encoded formulas and change some tokens to compacted form.

While this worked, it didn't save much and there was risk that encoding would collide
with names of columns as you got further out. With systems that had larger address
space it was thought better to just not encode/decode. There are artifacts here and
there of the old limit of 60 columns and 300 rows. This program did fit, kinda, in
16 bits but was a monster to link-edit. Figure it had many (I think it was over 100)
overlay segments, 5 co-trees for calling functions, and almost no space left to add
or change anything. Since it went to disk for everything it was not blindingly fast
either. Old story of the singing dog: it was not great music but the wonder was that
it could sing at all.

Calc - evaluate math expressions, lets variables A-Z be given values and used. Heavilyaltered from original so it works as subprogram and is controlled by the rest of the 
code. The "calc" loop starts here.

Cmdmun - takes inputs and handles input escape sequences, allows handling of arrow
keys and others. Many hacks. Note }$@ chars in column 1 inhibit up-casing chars.
The "enter mostly" mode is here too, which makes it possible to act as if the
"Enter" command were there so user can just type in values or arrows and have
data go in. 
Note nrdsp and ncdsp holds mapping of row or column the display sheet cells point
to. Note too in2as converts column number into letters. Handling an ANSI terminal 
and converting it to commands is not totally trivial...

Note filenames that are used to hold commands per special keys are set up here
so filenames get DK added and names KY<letter>.CMD are generated for @ command to
use. Thus PF1 to PF4 get KYP,KYR,KYS or KYQ for pf1,3, 4, or 2.

Varscn - read a line and return location of cell reference. Typget gets type of
cell (floading point or integer). JVblgt returns value of an integer cell and 
XVBLGT returns value of a floating point cell. (Most everything will usually use
floating point (double precision = real*8) values.)

Reflec converts locations to do "reflected boundary conditions" to allow cells
to be remapped, so that for example addresses far to the right of the ones
available get remapped left and down some again, and similarly for addresses
far down. Wrkfil gets formula record for a cell (can read or write) to get
formula given a cell's address. Reflec computes this address.
Varscn reads the line and returns cell address, for any of the addressing
mode hacks for cell names. (It may access other cell values in computing
this.)


