0b01011101
, which has an odd number of 1
's (5), the parity bit would be set to 1
. Conversely, if the parity mode was set to odd, the parity bit would be 0
.01001111
, while K's binary value is 01001011
. All that's left is appending sync bits.