Debug Dualsystem ROMs?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
User avatar
oRBIT2002
Posts: 642
Joined: Sun Mar 19, 2006 3:06 am
Location: Gothenburg/Sweden

Debug Dualsystem ROMs?

Post by oRBIT2002 » Sun Mar 14, 2021 2:02 pm

Is there a way of debugging dualsystem ROMs with “two screens”? “Mesen” doesn’t seem to like Dualsystem ROMs but is there another way?

lidnariq
Posts: 10458
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Debug Dualsystem ROMs?

Post by lidnariq » Sun Mar 14, 2021 2:05 pm

MAME should work, although its debugger has a learning curve.

User avatar
Goose2k
Posts: 237
Joined: Wed Dec 11, 2019 9:38 pm
Contact:

Re: Debug Dualsystem ROMs?

Post by Goose2k » Mon Mar 15, 2021 12:41 pm

oRBIT2002 wrote:
Sun Mar 14, 2021 2:02 pm
Is there a way of debugging dualsystem ROMs with “two screens”? “Mesen” doesn’t seem to like Dualsystem ROMs but is there another way?
Mesen does support it. You need to make sure the rom header is set up properly.

However, when I attempted to use the shared RAM in my game, Mesen crashes. I suspect you might run into the same thing with something like Vs. Tennis or other games that are multiplayer across both screens.
Attachments
from_below_dual_header.png
from_below_dual.png

User avatar
oRBIT2002
Posts: 642
Joined: Sun Mar 19, 2006 3:06 am
Location: Gothenburg/Sweden

Re: Debug Dualsystem ROMs?

Post by oRBIT2002 » Mon Mar 15, 2021 1:07 pm

Thanks for the tip!
There are two problems here, Mesen won't load my Mapper99 files so I can't edit it's header. If I manually change the header to something else it loads and I can change it (looking at your example), but Mesen crashes when loading the file afterwars.

User avatar
Goose2k
Posts: 237
Joined: Wed Dec 11, 2019 9:38 pm
Contact:

Re: Debug Dualsystem ROMs?

Post by Goose2k » Mon Mar 15, 2021 1:17 pm

oRBIT2002 wrote:
Mon Mar 15, 2021 1:07 pm
There are two problems here, Mesen won't load my Mapper99 files so I can't edit it's header.
There must be more to it, since as you can see, I am loading a Mapper 99 rom in that screenshot. I've attached the ROM if you want to try that out (maybe we have different versions of Mesen).

Assuming this ROM opens fine for you, but your other ROM does not, maybe you could open both in a header editing tool, and see what is different:

https://www.romhacking.net/utilities/1352/

Perhaps the ROM you have is misconfigured or uses some feature I am not.
Attachments
from_below_vs_dual_2020_09_16_v_1_0_0.nes
(40.02 KiB) Downloaded 18 times

User avatar
oRBIT2002
Posts: 642
Joined: Sun Mar 19, 2006 3:06 am
Location: Gothenburg/Sweden

Re: Debug Dualsystem ROMs?

Post by oRBIT2002 » Mon Mar 15, 2021 1:21 pm

Cool. That attachment worked. I'm using 0.9.9 of Mesen.

Post Reply