bbbbbr / romusage

A small command line tool for estimating usage of Game Boy (and other supported GBDK platform) ROMs from map files, .noi files, binary ROMs and more
The Unlicense
47 stars 9 forks source link

NES support #13

Closed hbons closed 1 week ago

hbons commented 1 week ago

Is NES support on the roadmap? This would be super helpful for me. :)

bbbbbr commented 1 week ago

I don't have plans right now, but if it's possible to add without major changes to the program I'm open to it.

For example, here are the memory templates that are used for GB and SMS/GG: https://github.com/bbbbbr/romusage/blob/main/src/bank_templates.c#L37C1-L77C160

@michel-iwaniec If you think this is plausible based on how gbdk-NES support is set up and you're interested in giving an overview of the memory config then let me know. I also understand that you're pretty busy with your project right now.

bbbbbr commented 1 week ago

Michel provided some guidance. Here's an experimental build you can test and share feedback on (platform/nes branch). https://github.com/bbbbbr/romusage/actions/runs/11906722260

You'll need to set the -p:NES flag and then use a .noi or .map file

bbbbbr commented 1 week ago

romusage_nes_test_autobank_example

hbons commented 1 week ago

Wow that's blazingly fast turnaround! :)

Compiled romusage from source and It seems to work fine. The 27% used looks credible for my game at this point:

Screenshot 2024-11-19 at 14 17 45
bbbbbr commented 1 week ago

Great, considering it was pretty straightforward and haven't seen major quirks I'll merge NES support into main. Closing the ticket, but feel free to comment here.