It is in octal(0570)_{8} Since it starts with octal, so take 3 bits in binary format.
(0570)_{8}=000 101 111 000
shifty>>4(left shift the bits 4 times)=100 000 010 111
shifty<<6(right shift the bits 6 times)=010 111 000 000
how did you that ?
i think it should be
shifty>>4(left shift the bits 4 times)=100 000 010 111
shifty<<6(right shift the bits 6 times)=010 111 000 100