After the examination of the complainant and the witnesses on the part of the prosecution, the witnesses for the accused may be sworn and examined, and the prisoner may, at his request, be sworn and examined as a witness in his behalf, under the restrictions applicable to the examination of defendants in the trial of criminal cases.
§ 544.380, RSMo