cpmish/utils/objectify.c
2019-06-04 23:10:30 +02:00

23 lines
364 B
C

#include <stdio.h>
int main(int argc, const char* argv[])
{
int count = 0;
for (;;)
{
int c = getchar();
if (c == EOF)
break;
if (count == 0)
printf("\n\tdb ");
else
printf(", ");
printf("0x%02x", c);
count = (count+1) & 7;
}
printf("\n");
return 0;
}