In the USA emulation is legal though using copyrighted content is illegal. So be careful of what you do.