If the defendant pleads guilty, the court must render judgment of conviction against him. If he denied the matters charged or refuses to answer the accusation, the court must immediately, or at such time as it may appoint, proceed to try the accusation.
NMS § 10-4-10