Commit | Line | Data |
---|---|---|
8d73ea61 GM |
1 | #include <stdio.h> |
2 | #include <string.h> | |
3 | #include <ctype.h> | |
4 | #include "../ascii/ascebc.h" | |
5 | #include "../ctlr/ebc_disp.h" | |
6 | ||
7 | ||
8 | void | |
9 | main() | |
10 | { | |
11 | int i; | |
12 | ||
13 | /* For each display code, find the ascii code that matches */ | |
14 | ||
663ee4bc | 15 | printf("unsigned char disp_asc[256] = {"); |
8d73ea61 GM |
16 | for (i = 0; i < sizeof disp_ebc; i++) { |
17 | if ((i%8) == 0) { | |
18 | printf("\n"); | |
19 | } | |
663ee4bc GM |
20 | printf("\t0x%2x,", ebcasc[0][disp_ebc[i]]); |
21 | } | |
22 | for (i = sizeof disp_ebc; i < 256; i++) { | |
23 | if ((i%8) == 0) { | |
24 | printf("\n"); | |
25 | } | |
26 | printf("\t0x%2x,", ' '); | |
8d73ea61 GM |
27 | } |
28 | printf("\n};\n"); | |
29 | } |