Answer:
A 'rom' becomes illegal if it is transferred to a medium that it is not licensed for. So a NDS ROM is legal while it is on its original NDS Gamepak, a DVD's contents is legal as long as it remains on DVD. However it is not legal to create an unlicensed duplicate of these by 'ripping' them from the original medium, and especially illegal to offer these for distribution.