Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address the issue when absolute RAM addresses overlap with relative ROM #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

veremenko-y
Copy link

Because of the specifics of Mesen label files, where ROM labels are relative, there could be (and in my case was) a case where RAM variable absolute address (e.g. 0x600) overlaps with relative bank address (0x8600), which results in wiz not emitting label for whatever comes the second.

This fix ensures that address ownership is checked by label type, not just by address.

So... I don't love this bugfix, but I'm also not C++ developer. Please feel free to give any feedback, and I can fix it better.

I know DebugFormatContext shares addressOwnership with other debug outputs, but I didn't feel it was appropriate to either change it, or add mlb specific one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant