I'm not an expert but from what I understand, emulating roms that you own is fine. Downloading roms off the internet for games that you haven't bought is piracy so that is illegal.
ok