In C, If I have a 32 bit binary address, how could I take bits 6 - 10 (5 bit value) and assign them to a new variable? For example, the address: 00000001001010011000100100100011
I want to take this section:
0000000100101001100010 01001 00011
And store it in a variable, x.