word x=8800; // = 0x2260
byte a=x/256;
byte b=x%256;
long val = 0x12345678;
printf("long: %ld\n", val);
printf("short: %d %d\n", ((short *)(&val))[0], ((short *)(&val))[1]);
printf("char: %d %d %d %d\n", ((char *)(&val))[0], ((char *)(&val))[1], ((char *)(&val))[2], ((char *)(&val))[3]);
union {
long l;
short s[2];
char c[4];
} val;
long val.l = 0x12345678;
printf("long: %ld\n", val.l);
printf("short: %d %d\n", val.s[0], val.s[1]);
printf("char: %d %d %d %d\n", val.c[0], val.c[1], val.c[2], val.c[3]);