Is Emulation Legal?

Is Emulation Legal?