Good morning.
Does anyone by chance know how to insert an NSF into a ROM?
It is that I want to insert an edited NSF to a ROM HACK that I am doing.
Can an NSF be inserted into a ROM?
Moderator: Moderators
Re: Can an NSF be inserted into a ROM?
If the NSF you modified was originally from that same game, then it would just be a matter of making sure that the new data isn't larger than the original data (or that the original ROM has empty space into which the sound data can be expanded).
Otherwise, It's highly unlikely that an arbitrary NSF could be safely inserted into an arbitrary game - even if there's room to fit the sound engine and its data, you'd also have to worry about where it stores its variables in RAM (i.e. making sure it doesn't overwrite all of the variables used by the game itself).
Otherwise, It's highly unlikely that an arbitrary NSF could be safely inserted into an arbitrary game - even if there's room to fit the sound engine and its data, you'd also have to worry about where it stores its variables in RAM (i.e. making sure it doesn't overwrite all of the variables used by the game itself).
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.
P.S. If you don't get this note, let me know and I'll write you another.
Re: Can an NSF be inserted into a ROM?
This is possible, under certain conditions relating to file / bank sizes, and memory addresses used by the host game and the nsf (if not from the same game). If it's from the same game, it should just be a matter of copy and pasting certain sections of the edited file into the rom file where the data effectively matches.
What is it exactly you are trying to add and into what game?
What is it exactly you are trying to add and into what game?
- Albert1983
- Posts: 24
- Joined: Tue Aug 04, 2020 6:34 pm
Re: Can an NSF be inserted into a ROM?
OK ... I already understood something ... But how do I get the NSF of a game?
Re: Can an NSF be inserted into a ROM?
If someone hasn't already ripped the game, follow these steps:
1. Learn assembly language for the MOS 6502
2. Using a debugging emulator, find where the game writes to $4000-$4013 and $4015
3. Find all the code and data directly related to coming up with the values written to those addresses
4. Read the NSF spec
5. Cut out all other code and data from the ROM
6. Change the mapper writes to use the NSF mapper instead
7. Put together an NSF header and the music-related code
Resources:
1. Learn assembly language for the MOS 6502
2. Using a debugging emulator, find where the game writes to $4000-$4013 and $4015
3. Find all the code and data directly related to coming up with the values written to those addresses
4. Read the NSF spec
5. Cut out all other code and data from the ROM
6. Change the mapper writes to use the NSF mapper instead
7. Put together an NSF header and the music-related code
Resources:
- "NES Music Format Spec" by Kevin Horton
- "NES Music Ripping Guide" by Chris Covell
- "20 Levels of NSF Ripping" by Gil Galad
- Albert1983
- Posts: 24
- Joined: Tue Aug 04, 2020 6:34 pm
Re: Can an NSF be inserted into a ROM?
OK...
I urgently need an NSF extracted from an EarthBound Zero ROM.
That is for a ROM Hack of the same game that I am making.
I urgently need an NSF extracted from an EarthBound Zero ROM.
That is for a ROM Hack of the same game that I am making.