Encode an instruction with a single immediate operand.