I think BIOS' and ROMS are legal if their respective consoles and games are no longer in production (or no longer on sale, maybe).