For US law, please refer to Sega Enterprises Ltd. vs. Accolade Inc. [1992]

Accolade Inc. was an independant games house, who pulled apart a sega Megadrive, discovered how it worked, then produced and sold their own compatible games for the console
Sega sued them, and lost

anyway, carry on