"He had not been ill, he might have ccome."
I think this sentence should read "IF he had not been ill, he might have come." In your sentence, the conjunction that introduces the conditional clause is missing.
The second sentence is fine. When a conditional clause contains one of the auxiliary...