blob: 1e8b9bd2259364c7ee53a5b4671c0aefddb069fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include <stdio.h>
#include <stdlib.h>
#include "binary-io.h"
int main ()
{
int i1, i2, i3;
#if O_BINARY
SET_BINARY(fileno(stdout));
#endif
for (i1 = 0; i1 < 0x80; i1++)
printf("0x%02X\t0x%04X\n", i1, i1);
for (i1 = 2; i1 < 32; i1++)
for (i2 = 0; i2 < 64; i2++)
printf("0x%02X%02X\t0x%04X\n", 0xc0+i1,0x80+i2, (i1<<6)+i2);
for (i1 = 0; i1 < 16; i1++)
for (i2 = (i1==0 ? 32 : 0); i2 < 64; i2++)
for (i3 = 0; i3 < 64; i3++)
printf("0x%02X%02X%02X\t0x%04X\n", 0xe0+i1,0x80+i2,0x80+i3, (i1<<12)+(i2<<6)+i3);
if (ferror(stdout) || fclose(stdout))
exit(1);
exit(0);
}
|