Use a sequence of binary to inspect/modify a given substring of bits e.g. 1001 0111 0011, you want to only use the first 4 bits from the left 1111 0000 0000 is your bit mask, & it with the relevant binary string
“Set” → set bit to 1 “Clear” → set bit to 0