From: wilson@dbit.com (John Wilson)
Subject: Re: PDP-10 ASCII conversion
Date: 1998/09/03 [thread overview]
Message-ID: <35ef5bec.0@news.wizvax.net> (raw)
In-Reply-To: 35EF1532.641DA773@uci.edu
In article <35EF1532.641DA773@uci.edu>,
Duncan Phillips <dphillip@uci.edu> wrote:
>We have some old 9-track tapes from a PDP-10 that we need to retrieve
>data from. The tapes have been dumped to cd but I was wondering if
>anyone has a filter to convert ASCII files from PDP-10 format to Unix ?
You didn't specify what OS the 10 was running. There are utilities on
ftp.dbit.com that can read some of them --
TOPS-10 ftp://ftp.dbit.com/pub/pdp10/tops10/decus/backup.tar
TOPS-20 ftp://ftp.dbit.com/pub/pdp10/tops20/read20/read20.tar
ITS ftp://ftp.dbit.com/pub/pdp10/its/itstar/
If you don't care about the file structure of the tape and can manually
extract the ASCII text parts, extracting typical PDP-10 ASCII isn't too hard,
each group of five tape frames (i.e. bytes) can be converted to five ASCII
characters as follows:
Input: aaaaaaaa (as written by TM03 tape formatter etc.)
bbbbbbbb
cccccccc
dddddddd
----eeee (high 4 bits of every 5th byte are dropped)
Yielding 36-bit word:
aaaaaaaabbbbbbbbccccccccddddddddeeee
Extracting 7-bit bytes starting at the left-hand side:
Output: 0aaaaaaa (pad with 0 MSB to store as an 8-bit byte)
0abbbbbb
0bbccccc
0cccdddd
0ddddeee (N.B. low bit of 36-bit word is dropped)
Just write a quicky program to chew through the CD files 5 bytes at a time
doing the above bit twiddling, and then edit out the garbage from the output
files and you should be done. Note that PDP-10 software typically stores text
files with lines terminated by CR LF, As God Intended; if you'll be using
the output on a Weenix system you'll need to strip out CRs that immediately
precede LFs.
John Wilson
D Bit
next prev parent reply other threads:[~1998-09-03 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-03 4:00 PDP-10 ASCII conversion Duncan Phillips
1998-09-03 4:00 ` John Wilson [this message]
1998-09-04 4:00 ` Smith and O'Halloran
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox