The number 80 is in the hexadecimal base, and that is the reason because we add the 0x (the 'x' is from heXadecimal) at the beginning of the number. If you change this number to the binary base you get 1000 0000 (the number is the same but the base is different, the form of representation is different). Each of the 4 bits chunks in binary base are represented by one digit in the hexadecimal base. As you only want the bit D7 (the first from the left) enabled (or set to 1) you only put that to one and all the other to zero. For example, if you want the bit D5 enabled, you will have in binary 0010 0000, that is, in hexadecimal 0x20. Other example, could be if you want the bits D6 and D5 enabled. You will get 0110 0000 in binary, and 0x60 in hexa. Even another example is if you want D7, D5, D1 and D0 enabled. With this you will get 1010 0011 in binary, that is the same that 0xA3 in hexadecimal.

The explanation is very shortened, but I hope you understand.