Under the criminal code, the separate offense of assault with intent to rob has been combined into robbery. Simmons v. State, 412 So.2d 1239 (Ala.Cr.App. 1982); Marvin v. State, 407 So.2d 576 (Ala.Cr.App. 1981). The crime of attempted robbery also constitutes robbery under the new criminal code. Petty v. State, 414 So.2d 182 (Ala.Cr.App. 1982).