How does shifting a binary number to the left translate to its hexadecimal representation?

39 Views Asked by At

So I have a binary output that is represented in Hex that I need to format it's binary representation in a certain way.

Say I have a binary output of: 000110111001 or 0x01B9 in HEX. I want to add 1 to the MSB of the output so that's like adding $2^{15}$ in decimal or 8000 in HEX.

And then I need to add either 00001 or 10001 at the END of the binary output at certain conditions. So what i'm planning to do is to left shift the output 5 times and then add the values 1 or 11 (in hex) to get my desired number. However, what i dont know is the equivalent of LEFT SHIFTING in binary in HEX.