retroenv / nesgodisasm

Nintendo Entertainment System ROM disassembler written in Golang
Apache License 2.0
14 stars 2 forks source link

add ini file support #8

Open cornelk opened 1 year ago

cornelk commented 1 year ago

allow to control code/data specification and comments

ItzSwirlz commented 1 year ago

Hi! Would this include being able to tell nesgodisasm to automatically name variables we know are confirmed? For example, in Duck Hunt, $00C4 is the score - could it then rename var_00C4 or whatever to it?

(btw how do I say in my repo that it uses this tool)

cornelk commented 1 year ago

Hi! Would this include being able to tell nesgodisasm to automatically name variables we know are confirmed? For example, in Duck Hunt, $00C4 is the score - could it then rename var_00C4 or whatever to it?

(btw how do I say in my repo that it uses this tool)

Hi, thanks for using this tool! Yes the ini support will offer you to do this, name functions, variables and add comments as well. The idea is to just need to distribute the .ini file so that everyone with the ROM can use this tool to generate a nice disassembly. Since this tool allows you to export the disassembly compatible with one of 3 assemblers, you can include a disassembly in the shared files but people are able to generate it for a different assembler using the ini file.