If I understand correctly, you are wanting to read in an analog value (pot), and display it in binary coded decimal format. If that is indeed the case, this method works well:
bit1 = (pot & 0x01); // LSB
bit2 = (pot>>1 & 0x01);
bit3 = (pot>>2 & 0x01);
bit4 = (pot>>3 & 0x01);
bit5 = (pot>>4 & 0x01);
bit6 = (pot>>5 & 0x01); // MSB