appendModeInfo

fun appendModeInfo(mode: Mode, bits: BitArray)

Append mode info. On success, store the result in "bits".