1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-13 23:36:30 +00:00

489 Commits

Author SHA1 Message Date
Adam Sampson
48beabe575 Make FACTOR's help match its behaviour.
The help code is adjusted to handle the new ^G key that FACTOR 26
introduced, and to match case-insensitively when searching FACTOR ORDER.
2018-04-11 14:45:54 +01:00
Adam Sampson
d9169dd71c Fix the inner loop when run from 100.
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.
2018-04-11 14:45:54 +01:00
Adam Sampson
5e908804ce Re-add comments from disassembly, and use register names.
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.
2018-04-11 14:45:54 +01:00
Adam Sampson
6984267e18 Import RZ;FACTOR 26 source.
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.
2018-04-11 14:45:54 +01:00
Adam Sampson
d1b101b3eb Reformat FACTOR disassembly to match RZ;FACTOR 26.
@larsbrinkhoff found the source for a slightly later version of FACTOR.
This produces the same binary as my original disassembly, but matches
RZ's source where possible, for easier comparison.
2018-04-11 14:45:54 +01:00
Lars Brinkhoff
93879ee82f Zork source code from 1981. From Bob Supnik. 2018-04-10 07:42:53 -07:00
Lars Brinkhoff
1b555896eb Zork source code from 1979. 2018-04-10 07:42:53 -07:00
Lars Brinkhoff
c67abaded0 Build KA ITS with DECtape support and channel 1 multiplexing. 2018-04-10 07:40:40 -07:00
Lars Brinkhoff
282829039f Use separate simulator config file for running newly built ITS.
This enables using a bootstrap ITS with a diffent configuration, such
as device support or channel 1 multiplexing, from the new ITS.
2018-04-10 07:40:40 -07:00
Adam Sampson
c836707a70 Reconstructed source for JOTTO.
Differences from the WAITS code:

- Converted back to MIDAS syntax.

- Reconstructed the ITS I/O code. Like WUMPUS, this originally opened
  the TTY with the 20 flag set to convert input to uppercase, and was
  later binary-patched to do the conversion itself (and convert output
  to lowercase). The program had a PATCH area originally, so I've
  included the patches in the source.

- The ITS version BLTs the jot-counting code into the registers and runs
  it from there. The WAITS version has the BLT commented out and just
  runs it from the BLTLOC buffer directly.

The TS JOTTO binary on AI/MC (dated 1990-08-14, although it's probably
much older than that) has been dumped after loading the dictionary. When
re-entered at BEG0, the original code asks for a DECtape number to read
the dictionary from, and constructs a UTx device name based on that in
UTNAME. However, in TS JOTTO, UTNAME contains DSK, so it must have been
dumped by patching that device name in directly; I've reproduced this in
build.tcl.

After the dump process, this produces a binary identical to TS JOTTO
except for the contents of the game variables. For the record, when
MC's version was last played before dumping, the computer chose the word
PETAL.

Fixes #789.
2018-04-08 19:37:35 +01:00
Adam Sampson
c257c56f5d WAITS Jotto source from SAILDART.
This is FAIL source, but it started life as MIDAS code for ITS; see in
particular the IFN-d out code for reading the dictionary file (BEG2),
and the RNG initialisation (ERASE). The dictionary is identical to the
one compiled into MC's TS JOTTO.

SAILDART has this source file with the following dates:
1972-11-18 17:58	JOTTO[S,RPH]
1973-06-17 03:54	JOTTO[CSP,SYS]

And the dictionary file with these dates:
1972-10-24 22:50	JOTTO.DIC[S,RPH]
1972-10-25 07:15	JT.DIC[SW,REG]
1973-06-17 03:54	JOTTO.DIC[CSP,SYS]
1987-03-18 08:21	JOTTO.DIC[GRF,DEK]

So it looks like it was ported to WAITS in October/November 1972,
perhaps by Dick Helliwell.
2018-04-08 19:37:35 +01:00
Lars Brinkhoff
322f414d8e Update information about chess programs. 2018-04-06 21:49:41 +02:00
Lars Brinkhoff
6b8457b392 Build PEEK with 340 support.
Prepare for building MAGDMP with 340 support, though it doesn't work yet.
2018-04-03 21:05:28 +02:00
Lars Brinkhoff
c55f3a19a4 Build ITS with 340 support. 2018-04-03 21:05:28 +02:00
Lars Brinkhoff
295cb0a550 Update KA10 simulator with 340 bug fix. 2018-04-03 21:05:28 +02:00
Adam Sampson
dc35210e66 Add FACTOR to list of programs. 2018-04-01 16:20:28 -07:00
Adam Sampson
f3d9ccbb62 Reconstruct source code for FACTOR.
This is based on a disassembly of the binary AI:SYS1;TS FACTOR; the
binary and its help file .INFO.;FACTOR ORDER are both dated 1977-09-27.
MC had an identical copy with a later date.

This assembles into a binary that's identical to the original, except
that the original version has all its symbols marked as global, and no
assembly info.

Fixes #96.
2018-04-01 17:07:13 +01:00
Eric Swenson
880744beca Added build of LIBLSP; VSAID FASL and LIBLSP; TTYVAR FASL.
Resolves #756 and #758.
2018-03-29 08:35:44 -07:00
Lars Brinkhoff
bbc2beba8f Init and update submodule contents if they are empty. 2018-03-27 13:57:15 -07:00
Lars Brinkhoff
9c7c40e19a CHAOS ARPA/NCP/TCP - gateway from Chaosnet to Arpanet/Internet. 2018-03-27 07:05:40 -07:00
Lars Brinkhoff
26e77a8317 SRDATE - set file reference date. 2018-03-27 07:02:07 -07:00
Adam Sampson
15fc94ec81 Remove obsolete mode bit when opening TTY.
@larsbrinkhoff spotted that TS3TTY has a comment listing TTY input open
mode bits which includes:

;3.5 => CONVERT LOWER TO UPPER CASE

This mode bit isn't documented in the similar lists in BITS or CALLS
(they skip from 3.4 to 3.6), and doesn't appear to be implemented
anywhere. However, ITS 785 (circa 1973) has a test for this bit in
TTYO4:

	TRNE D,10	;SKIP ON OLD MODE OFF
	IOR J,[000400,,0]	;OLD MODE INPUT -> CONVERT LOWER CASE TO UPPER

So it looks like when WUMPUS was first written, this bit was how it
handled lower-case input; at some point, ITS stopped supporting this
bit, and WUMPUS was binary-patched to handle lower-case input explicitly
instead.
2018-03-27 11:47:50 +01:00
Lars Brinkhoff
0c4bc45cda Update RABBIT, and compile it with itself.
RABBIT 570 has a (DECLARE (NEWIO T)) form which doesn't go over well
with the latest Maclisp compiler.  The fix is to just delete the
declaration.
2018-03-26 12:36:28 -07:00
Lars Brinkhoff
fa667bf64c RABBIT Scheme compiler, latest MIT version 570 dated June 30 1980.
This version was found in ALAN.  Version 569 in QUUX has timestamp
May 17 1978.
2018-03-26 12:36:28 -07:00
Lars Brinkhoff
de2b2e8439 Build the NSCHSY interpreter. 2018-03-26 12:36:28 -07:00
Lars Brinkhoff
61687e22f0 Update contribution guidelines.
- Add new programs to programs.md.
- Explain that people may make branches in this repository.
- Wait for approval before merging a pull request.
2018-03-26 15:51:19 +02:00
Adam Sampson
9e869769cf Accept "y" and "s" as well as "Y" and "S".
This is equivalent to the binary patch that was applied to
AI:SYS1;TS WUMPUS; the original patch was:

	.IOT TTYI,A	; at 50; jumped to from GETLF
	CAIL A,"a-1
	 SUBI A,"a-"A
	JUMPA T,GETLF+1
	JUMPA T,GETLF+2
	CAIE T,"s	; at 55; jumped to from MOVE2
	 CAIN T,"S
	  JUMPA T,MOVE2+1
	JUMPA T,MOVE2+2
PATCH:			; at 61; not used
2018-03-26 14:09:13 +01:00
Adam Sampson
7d42c5b2f9 Reconstructed source for WUMPUS.
AI:SYS1;TS WUMPUS was last modified 1977-04-12 18:16. It's closely
related to SRI-NIC's version, but it's unclear which is newer, or
whether they both derive from a common source.

This assembles into a binary that's identical to TS WUMPUS, except for
jumps from GETLF and MOVE2 to two binary patches at 50 and 55 which make
input case-insensitive.

(Note that EXPL ends with a bare \r, which is encoded as \356 here for
itstar's benefit.)

Fixes #108.
2018-03-26 14:09:13 +01:00
Adam Sampson
e07c3d428a TOPS-20 Hunt the Wumpus source from SRI-NIC.
SRC:<UTILITIES>WUMPUS.MID.2 is dated 1977-09-04 08:55:35 in the source,
and last modified 1979-07-11 20:32 according to the DUMPER logs.
2018-03-26 14:09:13 +01:00
Adam Sampson
f6fa96c6a2 Fix typo in emulator interrupt key. 2018-03-26 13:42:49 +01:00
Eric Swenson
7516530c3d Added several more LSPLIB packages.
Resolves #713.
2018-03-25 10:47:49 +02:00
Eric Swenson
437de06690 Fixed typo in creating link for LISP; BS FASL. 2018-03-25 10:47:49 +02:00
Lars Brinkhoff
ca33ba837f Add Scheme interpreter to README. 2018-03-25 07:50:24 +02:00
Lars Brinkhoff
ea2372c19a Build with GitLab CI. 2018-03-24 07:45:27 -07:00
Lars Brinkhoff
77bfb4e37f Move build procedure and program list to separate files.
Add a smaller list of major applications.
2018-03-24 07:42:08 -07:00
Lars Brinkhoff
4d2398d990 Dump Scheme to a TS file. 2018-03-23 07:21:01 -07:00
Lars Brinkhoff
84610ed8a8 New Scheme interpreter. 2018-03-23 07:21:01 -07:00
Lars Brinkhoff
5a185d79ca Don't build Macsyma if environment variable MACSYMA is no.
Use this to shorten the build times of the KLH10 and KA10 emulators.
2018-03-22 10:38:13 -07:00
Eric Swenson
92db560d8f Added lots of new LSPLIB packages (and their sources). 2018-03-22 10:38:13 -07:00
Lars Brinkhoff
13244c1d61 Version numbers from 1.4 and 1.5 manuals.
Virtual memory added 1969 or 1970.
2018-03-14 10:48:11 +01:00
Lars Brinkhoff
79e63da5ba Add $. to debugging guide. 2018-03-14 10:48:11 +01:00
Lars Brinkhoff
e8b20f1b5b Update list of machines. 2018-03-14 10:48:11 +01:00
Lars Brinkhoff
cf7ebc7967 More information on peripherals. 2018-03-14 10:48:11 +01:00
Lars Brinkhoff
81f1443f3d Fix TM03/TU45 confusion. 2018-03-14 10:48:11 +01:00
Lars Brinkhoff
8a9bab2e5d Add use of DIR device to cheat sheet. 2018-03-14 10:48:11 +01:00
Lars Brinkhoff
419b2258b8 Add to contribution guidelines. 2018-03-12 07:09:23 -07:00
Eric Swenson
85994ed770 Added files to support building and running Macsyma.
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.
2018-03-11 13:10:19 -07:00
Lars Brinkhoff
e88df80ca3 Disable building with the KA10 simulator.
Because it exceeds the 50 minute time limit.
2018-03-11 13:10:19 -07:00
Eric Swenson
19dfa40b9e Adds LIBMAX AND MAXTUL FASL files. These are prerequisites for
building and running Macsyma.  Resolves #710 and #711.
2018-03-09 07:47:00 +01:00
Eric Swenson
aefb232db9 Added sources and build instructions for Lisp library packages
required by Macsyma. Resolves #706.
2018-03-07 09:03:40 +01:00