converting operations to op codes with hex variable positions in the word