#include <unistd.h>
const unsigned char k[] = { 192, 204, 216, 240, 216, 204, 198, 0 };
int main(int argc, char **argv)
{
unsigned int i, j;
char c;
char o[8 * 8 + 8 + 8] = { 0 };
char *p;
p = o;
for (i = 0; i < sizeof(k) / sizeof(k[0]); ++i) {
c = k[i];
for (j = 0x80; j > 0; j = j >> 1, ++p) {
(c & j) ? (*p = '*') : (*p = ' ');
}
*(++p) = 10;
*(++p) = 13;
}
return write(1, &o, 8 * 8 + 8 + 8);
}
>>86831Welches Assemblerformat ist das?