Actually, ROMs are legal if you own a copy of the game in question, you don't need to rip it yourself.
Or if you can certify that there is no means of legally obtaining a copy, Ie sold out, recalled, no longer available due to parent company going out of business, ect.