xref: /original-bsd/usr.bin/tn3270/ascii/ebctab.c (revision 648cab2a)
1 /*
2  * Copyright (c) 1988 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that this notice is preserved and that due credit is given
7  * to the University of California at Berkeley. The name of the University
8  * may not be used to endorse or promote products derived from this
9  * software without specific prior written permission. This software
10  * is provided ``as is'' without express or implied warranty.
11  */
12 
13 #ifndef lint
14 static char sccsid[] = "@(#)ebctab.c	1.3 (Berkeley) 03/28/88";
15 #endif /* not lint */
16 
17 /*
18  * ebcdic to ascii translation tables
19  */
20 
21 #include "ascebc.h"
22 
23 unsigned char	ebcasc[NEBCASC][NEBC] = {
24 /* 00 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
25 /* 08 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
26 /* 10 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
27 /* 18 */   ' ',  ' ',  ' ',  ' ',  '*',  ' ',  ';',  ' ',
28 /* 20 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
29 /* 28 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
30 /* 30 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
31 /* 38 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
32 /* 40 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
33 
34 /* 48 */   ' ',  ' ',
35 #if	!defined(MSDOS)
36         /* 4A */       '\\',
37 #else	/* !defined(MSDOS) */
38         /* 4A */       '\233',		/* PC cent sign */
39 #endif	/* !defined(MSDOS) */
40         /* 4B */              '.',  '<',  '(',  '+',  '|',
41 
42 /* 50 */   '&',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
43 /* 58 */   ' ',  ' ',  '!',  '$',  '*',  ')',  ';',  '^',
44 /* 60 */   '-',  '/',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
45 /* 68 */   ' ',  ' ',  '|',  ',',  '%',  '_',  '>',  '?',
46 /* 70 */   ' ',  '^',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
47 /* 78 */   ' ',  '`',  ':',  '#',  '@', '\'',  '=',  '"',
48 /* 80 */   ' ',  'a',  'b',  'c',  'd',  'e',  'f',  'g',
49 /* 88 */   'h',  'i',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
50 /* 90 */   ' ',  'j',  'k',  'l',  'm',  'n',  'o',  'p',
51 /* 98 */   'q',  'r',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
52 /* A0 */   ' ',  '~',  's',  't',  'u',  'v',  'w',  'x',
53 /* A8 */   'y',  'z',  ' ',  ' ',  ' ',  '[',  ' ',  ' ',
54 /* B0 */   ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
55 /* B8 */   ' ',  ' ',  ' ',  ' ',  ' ',  ']',  ' ',  ' ',
56 /* C0 */   '{',  'A',  'B',  'C',  'D',  'E',  'F',  'G',
57 /* C8 */   'H',  'I',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
58 /* D0 */   '}',  'J',  'K',  'L',  'M',  'N',  'O',  'P',
59 /* D8 */   'Q',  'R',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
60 /* E0 */  '\\',  ' ',  'S',  'T',  'U',  'V',  'W',  'X',
61 /* E8 */   'Y',  'Z',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
62 /* F0 */   '0',  '1',  '2',  '3',  '4',  '5',  '6',  '7',
63 /* F8 */   '8',  '9',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
64 };
65