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 the above copyright notice and this paragraph are 7 * duplicated in all such forms and that any documentation, 8 * advertising materials, and other materials related to such 9 * distribution and use acknowledge that the software was developed 10 * by the University of California, Berkeley. The name of the 11 * University may not be used to endorse or promote products derived 12 * from this software without specific prior written permission. 13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 */ 17 18 #ifndef lint 19 static char sccsid[] = "@(#)ebctab.c 4.1 (Berkeley) 12/04/88"; 20 #endif /* not lint */ 21 22 /* 23 * ebcdic to ascii translation tables 24 */ 25 26 #include "ascebc.h" 27 28 unsigned char ebcasc[NEBCASC][NEBC] = { 29 /* 00 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 30 /* 08 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 31 /* 10 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 32 /* 18 */ ' ', ' ', ' ', ' ', '*', ' ', ';', ' ', 33 /* 20 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 34 /* 28 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 35 /* 30 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 36 /* 38 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 37 /* 40 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 38 39 /* 48 */ ' ', ' ', 40 #if !defined(MSDOS) 41 /* 4A */ '\\', 42 #else /* !defined(MSDOS) */ 43 /* 4A */ '\233', /* PC cent sign */ 44 #endif /* !defined(MSDOS) */ 45 /* 4B */ '.', '<', '(', '+', '|', 46 47 /* 50 */ '&', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 48 /* 58 */ ' ', ' ', '!', '$', '*', ')', ';', '^', 49 /* 60 */ '-', '/', ' ', ' ', ' ', ' ', ' ', ' ', 50 /* 68 */ ' ', ' ', '|', ',', '%', '_', '>', '?', 51 /* 70 */ ' ', '^', ' ', ' ', ' ', ' ', ' ', ' ', 52 /* 78 */ ' ', '`', ':', '#', '@', '\'', '=', '"', 53 /* 80 */ ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 54 /* 88 */ 'h', 'i', ' ', ' ', ' ', ' ', ' ', ' ', 55 /* 90 */ ' ', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 56 /* 98 */ 'q', 'r', ' ', ' ', ' ', ' ', ' ', ' ', 57 /* A0 */ ' ', '~', 's', 't', 'u', 'v', 'w', 'x', 58 /* A8 */ 'y', 'z', ' ', ' ', ' ', '[', ' ', ' ', 59 /* B0 */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', 60 /* B8 */ ' ', ' ', ' ', ' ', ' ', ']', ' ', ' ', 61 /* C0 */ '{', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 62 /* C8 */ 'H', 'I', ' ', ' ', ' ', ' ', ' ', ' ', 63 /* D0 */ '}', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 64 /* D8 */ 'Q', 'R', ' ', ' ', ' ', ' ', ' ', ' ', 65 /* E0 */ '\\', ' ', 'S', 'T', 'U', 'V', 'W', 'X', 66 /* E8 */ 'Y', 'Z', ' ', ' ', ' ', ' ', ' ', ' ', 67 /* F0 */ '0', '1', '2', '3', '4', '5', '6', '7', 68 /* F8 */ '8', '9', ' ', ' ', ' ', ' ', ' ', ' ', 69 }; 70