You buy the equipment necessary to dump the roms from your own carts (expensive, but legal), or you find a site on the interweb and download the roms (free, but illegal).
We don't go into discussions about either method, so from this point on you are on your own...