Hi, i'm fairly new to working with binary files
How can i strip the last TWO bits off a 32 bit word?
i was doing something like
void First12bits(unsigned short* memblock)
{
*memblock = (*memblock & 0x0FFF);
}
to get the first 12 bits previously,
Thanks for the help
Dan
How can i strip the last TWO bits off a 32 bit word?
i was doing something like
void First12bits(unsigned short* memblock)
{
*memblock = (*memblock & 0x0FFF);
}
to get the first 12 bits previously,
Thanks for the help
Dan