Thanks for pointing me to the tool, but are you sure we're talking about the same thing? I only mean to extract the translation from the Switch version, there's no need to patch the executable. I'd be patching the original famicom ROM.
Anyway, I've decided to take a shot at finding the table pointers. First of all, there was no Ghidra plugin for parsing an MMC4 cart, so I went ahead and implemented support for it in an existing plugin. It hasn't yet been integrated into the original repo, but you can find my pull request at the GhidraNes github (I'm not able to post links in the forum just yet).
A quick search over the binary has already produced interesting results. I've found four pointer tables, as follows:
I'm also using an incomplete table file I found on RHDN. As far as I can tell, everything in it is correct. I've attached it to this post.
Anyway, I've decided to take a shot at finding the table pointers. First of all, there was no Ghidra plugin for parsing an MMC4 cart, so I went ahead and implemented support for it in an existing plugin. It hasn't yet been integrated into the original repo, but you can find my pull request at the GhidraNes github (I'm not able to post links in the forum just yet).
A quick search over the binary has already produced interesting results. I've found four pointer tables, as follows:
- $03:$A467 (50 entries): The dialog with NPCs you find in houses.
- $04:$ADED (66 entries): The ending texts that describe what happened to the characters post-game.
- $07:$84E4 (9 entries): Random stuff. I think this is unused data.
- $11:$8FC2 (72 entries): Labels for menu items.
I'm also using an incomplete table file I found on RHDN. As far as I can tell, everything in it is correct. I've attached it to this post.