FACTOR 26 modified the inner loop to run from 100 rather than from the
ACs, with a comment indicating that this was faster on the KL10.
But it didn't have the intended effect; the code modifies itself using
TRC and HRRI, which only have a 4-bit AC field, so the inner loop's step
size wasn't being changed. The factoring algorithm still worked by
chance, because the step size is initialised to 2 and the TRC/HRRI
harmlessly changed A instead, but it had to consider every odd number as
a possible factor.
When the code isn't running from the ACs, there are plenty of spare ACs,
so keep the step size in AC 7 instead for the KL version.
Register 5 has names E and DV -- I've used DV where it's being used on
its own as a potential divisor, and E where it's being used as part of
the pair DE for a number.
Differences from AI's TS FACTOR:
- KL10 define to put the TEST inner loop code at 100 rather than in the
registers -- ";;KL10 RUNS SLOWER IN ACS".
- Lookup table for commands, including uppercase and lowercase.
- A new "quit" command.
- Mixed-case messages.
- System calls modernised a bit; .CALL /OPEN/ rather than .SUSET/.OPEN,
and not opening the TTY in DDT mode.
Resolves#284.
Commented out uses of time-origin in maxtul; mcldmp (init) until we
can figure out why it gives arithmetic overflows under the emulators.
Updated the expect script statements in build_macsyma_portion to not
attempt to match expected strings, but simply sleep for some time
since in some cases the matching appears not to work.