<b>
unsigned char x;

void boo(unsigned char d)
{
    x = (x & 0xF0) | (d & 0xF);
}
</b>