Good Morning.
I want to decompile a NES ROM, but I don't know how...
I got the da65 program, but I don't know how to use it...
Will there be a tutorial to use it?
Is there a tutorial on how to use da65?
Moderator: Moderators
Re: Is there a tutorial on how to use da65?
First I would separate the different parts of the ROM with a hex editor. Remove the header. Make the CHR ROM its own file.
Then split the PRG ROM into different banks, the size depends on which mapper you are using.
Then run the da65 on each PRG ROM bank.
The real trick is reassembling it. You need to create a configuration file (cfg) for the linker, which is highly dependent on the mapper the ROM uses.
Then split the PRG ROM into different banks, the size depends on which mapper you are using.
Then run the da65 on each PRG ROM bank.
The real trick is reassembling it. You need to create a configuration file (cfg) for the linker, which is highly dependent on the mapper the ROM uses.
nesdoug.com -- blog/tutorial on programming for the NES
- rainwarrior
- Posts: 8000
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: Is there a tutorial on how to use da65?
If you want to use da65 effectively you should read about its "info" file format:
https://cc65.github.io/doc/da65.html#s4
There's no tutorial on it that I know of. I did use it for a StarTropics modification project of mine, and I left the disassembly info with it as an example: StarTropics musix fix
With the info file you don't actually need to separate the PRG into banks, you can define segments in the info file instead.
https://cc65.github.io/doc/da65.html#s4
There's no tutorial on it that I know of. I did use it for a StarTropics modification project of mine, and I left the disassembly info with it as an example: StarTropics musix fix
With the info file you don't actually need to separate the PRG into banks, you can define segments in the info file instead.
- Albert1983
- Posts: 14
- Joined: Tue Aug 04, 2020 6:34 pm
Re: Is there a tutorial on how to use da65?
I already split the ROM...dougeff wrote: ↑Sun Nov 29, 2020 10:37 amFirst I would separate the different parts of the ROM with a hex editor. Remove the header. Make the CHR ROM its own file.
Then split the PRG ROM into different banks, the size depends on which mapper you are using.
Then run the da65 on each PRG ROM bank.
The real trick is reassembling it. You need to create a configuration file (cfg) for the linker, which is highly dependent on the mapper the ROM uses.
Now how I create the configuration file (cfg).