(a) It is an affirmative defense to prosecution that, at the time of the conduct charged, the actor, as a result of severe mental disease or defect, did not know that his conduct was wrong.
(b) The term "mental disease or defect" does not include an abnormality manifested only by repeated criminal or otherwise antisocial conduct.
Official text of the Texas Penal Code as published by the Texas Legislative Council.