mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-25 22:28:24 -05:00
17 lines
274 B
C++
Executable File
17 lines
274 B
C++
Executable File
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
puts("enum {");
|
|
for (int i = 0; i < 256; i++) {
|
|
printf(" B");
|
|
for (int j = 0; j < 8; j++) {
|
|
putchar(i & (1 << (7 - j)) ? '1' : '0');
|
|
}
|
|
printf("= %d", i);
|
|
if (i < 255) putchar(',');
|
|
putchar('\n');
|
|
}
|
|
puts("};");
|
|
return 0;
|
|
} |