If any person break and enter a dwelling house while said dwelling is occupied, either in the day or nighttime, with the intent to commit any misdemeanor except assault and battery or trespass, he shall be guilty of a Class 6 felony. However, if the person was armed with a deadly weapon at the time of such entry, he shall be guilty of a Class 2 felony.
Code 1950, § 18.1-88.1; 1968, c. 530; 1970, c. 381; 1975, cc. 14, 15; 1992, c. 486.