Installing sheathing with Staples or Ring Shank?
The Code (ICC Code Table 2304.9.1) requires for either 5/8” or 3/4” structural panels (plywood) or particleboard (OSB board) for roofs, floors or walls use either:


8d common at 6” oc at edges and 12” in field. 
6d deformed at 6” oc at edges and 12” in field. 
2 3/8” x 0.113” nail at 4” oc at edges and 8” in field. 
2” x 16 gage staple with 7/16” crown at 4” oc at edges and 8” in field. 


For 3/8” or 1/2” structural panels or particle board use either:

A. 6d common or deformed: 6/12 oc

B. 8d box or deformed: 6/12 oc

C. Wall: 2 3/8” x 0.113” nail: 6/12” oc

D. Wall: 1 3/16 x 16 gage staple with 7/16  crown: 4/8” oc

Be careful how far you span on the roof with 5/8” OSB board. In certain heavy snow areas it could sag when spanning 24” on center.