39. The powers and duties of the Judge-Advocate of a court martial shall be as follows;-
(a) It shall be his duty, whether before or during the proceedings, to give advice on questions of law or procedure relating to the charge or trial to the prosecutor and to the accused, who are hereby declared to be entitled to obtain such advice at any time after his appointment:
Provided that during proceedings he shall give such advice with the prior permission of the court martial.
(b) It shall be his duty to invite the attention of the court martial to any irregularity in the proceedings. Whether or not he is consulted, he shall inform the court martial and the authority who has ordered the court martial to be held, of any defect in the charge or in the constitution of the court martial, and shall give his advice on any matter before the court martial.
(c) He shall take all such action as may be necessary to ensure that the accused does not suffer any disadvantage in consequence of any incapacity to examine or cross-examine witnesses or to give evidence clearly, and may for that purpose, with the permission of the court martial, question any witness on any relevant matter.
(d) At the conclusion of the case he shall, unless both he and the court martial consider it unnecessary,
sum up the evidence and advise the court martial upon the law relating to the case before the court martial proceeds to deliberate upon its finding. *Duties of Judge- Advocate.*