A Simulated Numeric Key-Pad

This little program will turn part of your Apple's keyboard into a simulated numeric key-pad.  A lot cheaper than buying a real one!  It is set up to run in page 3, and assumes you are using DOS.  If not, just change line 1120 to an RTS.

If you BRUN it or CALL it at 768, the input vector is patched to input all characters through the NKP program.  Typing a control-S will toggle the numeric key-pad translator on and off.  When the translator is off, all keyboard action is normal, except that another control-S will turn it back on again.  When the translator is on, all keys which are not part of the simulated key-pad will input normally.

The keys translated by the simulator are listed in line 1390.  The slash key duplicates RETURN, because it is easier to hit when yu are entering a lot of numbers.  For the same reason, the L-key duplicates "-", in case you are in a hurry to enter negative numbers too.  The space bar is used for "0".  I set it up to use "NM," for "123", "HJK" for "456", and "YUI" for "789".  You shuld be able to easily change these translations to any other combination, by changing lines 1390-1420.

The heart of the translator is the search loop in lines 1240-1280.  If the input character is not found in CHRTBL, the search loop drops out and the character is not changed.  If the character is found, line 1310 picks up the alias for the key, and returns.  That's all there is to it!
