#include
int main()
{
unsigned char d, p;
printf("EvenParityTable: \n");
for(d=0;d<0x80;d++){
p = (d&0xf0)^(d<<4);
p = (p&0xc0)^(p<<2);
p = (p&0x80)^(p<<1);
printf("0x%x, ", d|p);
if((d&0x7)==0x7)
printf("\n");
}
return 0;
}
阅读(652) | 评论(0) | 转发(0) |