From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,4ccd93f03033a4a1,start X-Google-Attributes: gidfdb0e,public X-Google-Thread: fd705,4ccd93f03033a4a1,start X-Google-Attributes: gidfd705,public X-Google-Thread: 1164f8,4ccd93f03033a4a1,start X-Google-Attributes: gid1164f8,public From: bob.supnik@ljo.dec.com (Bob Supnik) Subject: Answers to prior PDP-1 questions Date: 1997/01/05 Message-ID: <5and1f$ol0@usenet.pa.dec.com>#1/1 X-Deja-AN: 207808541 content-type: Text/Plain; charset=US-ASCII organization: Digital Equipment Corporation mime-version: 1.0 newsgroups: comp.sys.dec,alt.sys.pdp10,alt.folklore.computers My thanks to all the people who replied. For the curious: 1. PDP-1 shifts were arithmetic. The sign bit was unchanged. Left shifts filled from the sign. Right shifts propagated the sign. 2. The sequence break system was based on three flops: b2 (sequence break request and a synchronizer b3), b4 (sequence break in progress), and sequence break enabled. All devices requested a break by setting b2. If breaks were enabled, the CPU set flop b4, disabling further breaks, and cleared b2, clearing the current request. To find debreak, the CPU monitored the instruction register for the instruction JMP I 1 with breaks enabled. At that point, b4 was cleared, re-enabling the break system. 3. I/O halt was based on these flops: ioh (halt), ioc (command), iohs (ioh storage), and ios (start). If an IOT was issued with bit <5> set, ioh would be set. At the end of the IOT, if ioh was set, ioc (execute command) was cleared, the PC was decremented, and thus the IOT re-executed. Because ioc was cleared, the re-executed IOT was a NOP. When a device restart pulse came in, ios was set. If an IOT with bit<5> set was executed and ios was set, at the end of the IOT, ioh was cleared, and ioc was set. Because ioh was clear, the PC was not decremented, and the CPU exited the wait loop. If an IOT with bit<5> clear was executed, and ioh was set, then this would have to be an IOT in an interrupt routine. To prevent the system from hanging, ioh was stored in iohs, ioh was set, and ioc cleared, thus allowed the interrupt level IOT to execute. At the end of the IOT, ioh was restored from iohs. Since ioh is set, ioc is cleared, but the PC is not backed up. If this sounds complicated, it is! 4. Bits <5> and <6> of an IOT were not independent. The combinations were: 00 = asynchronous, no completion signal 01 = asynchronous wait, generate completion signal 10 = synchronous wait, enter I/O wait immediately 11 = unused, enter I/O wait, do not generate completion signal Combination 11 could hang the machine, unless another I/O device programmed to generate a completion signal was in operation. --- A few minor questions remain: 1. cks instruction: was there a status bit for the sequence break system? A late handbook says status<6> was sequence break, the maintenance manual is silent. 2. cks instruction: which bits were used for print done and space done? 3. sequence breaks: was flop b2 (break request) conditioned by the break enable? That is, did sequence breaks "accumulate" when the break system was disabled? /Bob Supnik