Strictly speaking, its probably not legal, especially not with regard to the DMCA since it probably involved what could be alleged as reverse engineering. It also probably violates Nintendo's EULA.
But as with most rights holders, barring the MPAA and RIAA, Nintendo does know their fanbase are very devoted to them and…