Emulators are legal. What you feed them is where it gets complicated.
Aliteq
Emulation's legal line: what four decades of court fights actually settled