Emulators themselves are legal as long as they don't come with code actually taken from the consoles.
which they usually do because without the BIOS they dont work.