Legislation that would ban the sale or purchase of semi-automatic firearms that take detachable magazines is set to be heard in the Colorado Senate on Thursday.