Back when I had a problem with a car load of Muslims sitting outside my house all week long waiting for me.
I talked with 2 lawyers, 1 FBI Field Agent, the AACO States Attorney and the Local police chief.
They all said the same thing.
If a person comes into your home and threatens bodily harm and/or death to you or anyone else in the home, you have a right to use deadly force. But its advisable you try at least once to retreat.
Now, if you did your job right in shooting teh intruder, there should ony be YOUR side of the story to go on. So all of the semantics of verbal threats from teh inturder is pretty much what you want it to be.
I know you asked for actual legal code, but like you I couldn't find it either back then. But thats what some very reputable people told me.