To conclude: the real answer lies in that the presets given from the Atari vs Nintendo case in America state that clean room reverse engineering of these chips is legal.
PS: IANAL, also gameboy games would be a trademark violation because of the security involving the nintendo logo being rendered on the screen by the cartridge and then being compared to one from ROM, a personal fav trick from nintendo also physically applied on the disks of the famicom disk system which held the nintendo logo on them physically indented allowing a stamp inside the disk reader to be inserted into it (easily bypassed by great groups such as hacker limited by simply adding a flat piece of plastic to the 2.8 inch quickdisks, or sipmly adding instructions on how to add this yourself).
A lot of this gets bypassed using ye olde method of selling the means and then making the user do the bypass themselves using the means.
This is legal. It's analogous to the TMSS mechanism used by Sega in the Genesis; Sega v. Accolade [1] established that a "trademark violation" which the trademark holder forces to occur through technical measures is not, in fact, a violation.
[1] https://en.wikipedia.org/wiki/Clean_room_design [2] https://www.youtube.com/watch?v=HwEdqAb2l50