unsigned char swap(unsigned char c){
unsigned char r=0 ;
if (c&(1<<7)) r|= 1<<0 ;
if (c&(1<<6)) r|= 1<<1 ;
if (c&(1<<5)) r|= 1<<2 ;
if (c&(1<<4)) r|= 1<<3 ;
if (c&(1<<3)) r|= 1<<4 ;
if (c&(1<<2)) r|= 1<<5 ;
if (c&(1<<1)) r|= 1<<6 ;
if (c&(1<<0)) r|= 1<<7 ;
return r;
}
unsigned char r=0 ;
if (c&(1<<7)) r|= 1<<0 ;
if (c&(1<<6)) r|= 1<<1 ;
if (c&(1<<5)) r|= 1<<2 ;
if (c&(1<<4)) r|= 1<<3 ;
if (c&(1<<3)) r|= 1<<4 ;
if (c&(1<<2)) r|= 1<<5 ;
if (c&(1<<1)) r|= 1<<6 ;
if (c&(1<<0)) r|= 1<<7 ;
return r;
}