The legality of emulators can vary from country to country; however, the general consensus is that an emulator is not illegal. After all, an emulator is simply a piece of software that mimics the functionality of existing hardware. The same cannot be said about the games. In the United States, making a digital copy of a game you own is thought to fall under "fair use," but the distribution, copying or downloading of a game is definitely illegal.