Looking for a function to encode from number to immr, imms values for ANDS instruction