Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Tape from Tops-10 ...
@ 1995-06-19  4:00 Bob Schor
  1995-06-19  4:00 ` Richard M. Alderson III
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Schor @ 1995-06-19  4:00 UTC (permalink / raw)


Dear Colleagues,

     I'm trying to decipher some mag tapes which I believe came from a Tops-10 
PDP-10 system.  I have the tapes and a directory listing printout -- the 
listing says "Monitor UW01091 Tops-10 702.76".  On the listing, tape file 
names have 6 characters with a 3 character extension, there is a protection 
code (typically <157>), a creation date (one such was 05-Nov-76), a version 
(usually blank), and an owner ([10023,511]).  [This directory was created on 
12-Sep-86).

     I can physically read the tapes just fine.  When the listing says the 
file size is 3, I generally see a record of 3 blocks, the first two being 640 
bytes, the last being smaller.  I'm trying to figure out how the data are 
placed on the tape, so I might have some hope of decoding the information.

     I know that the PDP-10 used a 36-bit word.  I gather from the lack of 
ANSI headers that the files probably have header information embedded in the 
first block.  One thing I tried was to start with what should have been a 
Fortran source file (extension .F4).  I'm guessing that the 36-bit PDP-10 
words would be written on a 9-track 1600 PE tape as 5 bytes (packed how?), 
which explains the 640-byte record size (128 PDP-10 words * 5 bytes = 640).  I 
would then guess that text might be 5/7 packed (as in the PDP-15).

     I've tried the easy things.  I don't see any obvious pattern in the bytes 
(assuming 36 bits in 5 bytes = 40 bits, it doesn't seem to be the case that 
the first four or last four bits are all zero).

     I've never actually seen a PDP-10 (nor a -20), let alone their manuals.  
If anyone can give me some clues as to how 9-track tape is written on these 
fine machines, I would be grateful.  If, in addition, you have some insight 
into the integer and floating point formats (are integers 36 or 72 bits?  How 
many bits in the floating point for exponent, how many for mantissa?  Where is 
the sign bit?), I'll be twice grateful.  

     Should manuals be available, and a fax machine handy, my fax number is 
(412) 647-2080.  E-mail, of course, is also fine.

Bob Schor



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tape from Tops-10 ...
  1995-06-19  4:00 Tape from Tops-10 Bob Schor
@ 1995-06-19  4:00 ` Richard M. Alderson III
  0 siblings, 0 replies; 2+ messages in thread
From: Richard M. Alderson III @ 1995-06-19  4:00 UTC (permalink / raw)


I'm e-mailing the following, as well as posting it for the general good here.

In article <bschor.135.0060F44E@vms.cis.pitt.edu> bschor@vms.cis.pitt.edu
(Bob Schor) writes:

>I'm trying to decipher some mag tapes which I believe came from a Tops-10
>PDP-10 system.

The further data you provided indicates Tops-10 v. 7.02.

>I know that the PDP-10 used a 36-bit word.  I gather from the lack of ANSI
>headers that the files probably have header information embedded in the first
>block.  One thing I tried was to start with what should have been a Fortran
>source file (extension .F4).  I'm guessing that the 36-bit PDP-10 words would
>be written on a 9-track 1600 PE tape as 5 bytes (packed how?), which explains
>the 640-byte record size (128 PDP-10 words * 5 bytes = 640).  I would then
>guess that text might be 5/7 packed (as in the PDP-15).

The default tape organization on both Tops-10 and Tops-20 is known as
"core-dump" format.  The bit layout on 9-track tape is

	 9	 8	 7	 6	 5	 4	 3	 2	1

	 0	 1	 2	 3	 4	 5	 6	 7	P
	 8	 9	10	11	12	13	14	15	P
	16	17	18	19	20	21	22	23	P
	24	25	26	27	28	29	30	31	P
	 0	 0	 0	 0	32	33	34	35	P

>I've tried the easy things.  I don't see any obvious pattern in the bytes
>(assuming 36 bits in 5 bytes = 40 bits, it doesn't seem to be the case that
>the first four or last four bits are all zero).

Right.  You should find the first 4 bits of byte 5 are zero; on one older type
of tape controller, bits 30 and 31 will appear in frames 7 and 6 of that byte
as well as in frames 3 and 2 of byte 4.

One gotcha to be aware of:  One of the editors used line numbers, which were
filtered out by the monitor ("kernel") by the fact of having bit 35 set to 1
rather than 0; the parity is calculated as if it were 0, and so you would see
parity errors on the 5th byte of each line number.

>I've never actually seen a PDP-10 (nor a -20), let alone their manuals.  If
>anyone can give me some clues as to how 9-track tape is written on these fine
>machines, I would be grateful.  If, in addition, you have some insight into
>the integer and floating point formats (are integers 36 or 72 bits?  How many
>bits in the floating point for exponent, how many for mantissa?  Where is the
>sign bit?), I'll be twice grateful.

There are single- (36-bit) and double-precision (72-bit) fixed-point numbers;
single-precision is of course much more common.  2's complement and all that;
sign is in bit 0, duplicated in bit 0 of the second word for double-precision.
Single-precision range is -2**35 to (2**35)-1; double is -2**70 to (2**70)-1.

(For double-precision multiply and divide, quad-length is defined for product
or dividend, with duplicated sign bits in all 4 words, and range -2**140 to
(2**140)-1.)

Floating-point numbers come in three varieties:  Single/double precision, and
expanded-range double.  

The format of a single-precision float is sign (bit 0), 8-bit exponent (1-8),
and 27-bit mantissa (9-35).  The exponent is in excess-128 notation, so that
values 0 to 255 represent exponents -128 to +127.  Floating-point 0 is the same
as fixed-point 0, a word with all bits = 0.

Negative floats are best described by the manual:

	A negative number has a 1 for its sign and the two's complement of
	the fraction, but since every fraction must ordinarily contain a 1
	unless the entire number is zero, it has the one's complement of the
	exponent code in bits 1-8.  Since the exponent is in excess 128 code,
	an actual exponent _x_ is represented in a positive number by _x_ +
	128, in a negative number by 127 - _x_.  The programmer, however,
	need not be concerend with these representations as the hardware
	compensates automatically.

The first word of a standard double-precision float is identical in format to a
single-precision float; the second word holds further fraction bits in 1-35.
Bit 0 of the second word is set to 0 in results, and ignored in operands.  The
example value is 2**18 + 2**(-18), and its negative:

	0  10 010 011  100 000 000 000 000 000 000 000 000
	0  00 000 000  010 000 000 000 000 000 000 000 000

and	1  01 101 100  011 111 111 111 111 111 111 111 111
	0  11 111 111  110 000 000 000 000 000 000 000 000

Expanded-range double-precision floats (AKA "G floating-point" after the VAX)
are like standard-range double-precision floats, except the high-order word
contains an 11-bit exponent and only the first 24 bits of the mantissa.  That
is, the exponent is in excess-1024 notation.  The same example value is thus:

	0  00 010 010 011  100 000 000 000 000 000 000 000
	0  00 000 000 000  010 000 000 000 000 000 000 000

I hope this helps.
-- 
Rich Alderson   You know the sort of thing that you can find in any dictionary
                of a strange language, and which so excites the amateur philo-
                logists, itching to derive one tongue from another that they
                know better: a word that is nearly the same in form and meaning
                as the corresponding word in English, or Latin, or Hebrew, or
                what not.
                                                --J. R. R. Tolkien,
alderson@netcom.com                               _The Notion Club Papers_



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-06-19  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-19  4:00 Tape from Tops-10 Bob Schor
1995-06-19  4:00 ` Richard M. Alderson III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox