To or from "N" out of "M" codes