I need to store values 1 through 15 (or 0 through 16,i can just offset it in read or write), in the right most bits of a byte but there will be other bits in the remaining left. Am I right in thinking I should shift left until all the other bits are zeroed. Then shift back right the same amount to get a value in the appropriate range