ALBANY, N.Y. (AP) -- Gov. Andrew Cuomo says he'll sign legislation to exempt retired police from the state's new restrictions on large-capacity magazines and guns defined as assault weapons.

The legislation passed Friday says the exemption would apply to officers who bought or were issued restricted weapons in the course of their duties and who retired in good standing.

The law was enacted in January, a month after the Newtown, Conn., school massacre. It generally limits the number of rounds in a magazine to seven, bans large-capacity magazines, bans sales of assault-style weapons and requires federal background checks in private gun sales.

It requires registration of popular semi-automatics like AR-15s with one military-style feature previously sold legally in New York.