[comp.std.misc] Asking for information on the RAD-50 standard

adiro@TAURUS.BITNET (08/22/89)

 I am looking for information regarding the RAD-50 standard, which is
apparently a character encoding standard used on old PDP-11 machines.

 Would anyone have the specifications of this standard?
 Would anyone know where to find these specifications?


 Please respond to adiro@taurus.bitnet or adiro@math.tau.ac.il

 Thank you for your efforts.


  Adi Rosen , Tel-Aviv

peter@ficc.uu.net (Peter da Silva) (08/26/89)

In article <1075@taurus.BITNET>, adiro@TAURUS.BITNET writes:
>  I am looking for information regarding the RAD-50 standard...

The rad50 (also known as rad-40) standard uses a 40-character character set.

	Character	Decimal		Octal
	(space)		0		000
	A-Z		1-26		001-032
	$		27		033
	.		28		034
	(unused)	29		035
	0-9		30-39		036-047

Depending on the application, I've seen the unused character rendered
as '@', '?' or '_'. To encode a rad-50 string, pad to a multiple of 3
characters with spaces (or, in some applications, the unused character).
Then take the characters 3 at a time (call them i, j, and k):

	val == ((i*40+j)*40+k) == ((i*050+j)*050+k)
-- 
Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation.
Biz: peter@ficc.uu.net, +1 713 274 5180. Fun: peter@sugar.hackercorp.com. `-_-'
"export ENV='${Envfile[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'" -- Tom Neff     'U`
"I didn't know that ksh had a built-in APL interpreter!" -- Steve J. Friedl