1 #include <stdio.h>
2 #if	defined(unix)
3 #include <strings.h>
4 #else	/* defined(unix) */
5 #include <string.h>
6 #endif	/* defined(unix) */
7 #include <ctype.h>
8 #include "../ascii/ascebc.h"
9 #include "../ctlr/ebc_disp.h"
10 
11 
12 int
13 main()
14 {
15     int i;
16 
17     /* For each display code, find the ascii code that matches */
18 
19     printf("unsigned char disp_asc[256] = {");
20     for (i = 0; i < sizeof disp_ebc; i++) {
21 	if ((i%8) == 0) {
22 	    printf("\n");
23 	}
24 	printf("\t0x%02x,", ebcasc[0][disp_ebc[i]]);
25     }
26     for (i = sizeof disp_ebc; i < 256; i++) {
27 	if ((i%8) == 0) {
28 	    printf("\n");
29 	}
30 	printf("\t0x%02x,", ' ');
31     }
32     printf("\n};\n");
33 
34     return 0;
35 }
36