NSF File Structure

Questions and information regarding the source & NSF driver.
User avatar
Posts: 16
Joined: Fri Jun 23, 2017 5:34 pm
Location: Finland

NSF File Structure

Postby SusiKette » Wed Dec 12, 2018 10:09 am

I figured people here would know something about the NSF file. This page has some information about it, but it doesn't explain everything. First off, I know I'm supposed to write the NSF file to the player's ROM space starting from $8000. Does this include the header of the file or only the part starting from $80 in the file? Once the file is written, are the Load, Init and Play addresses in the header the location where they are located in the ROM space? On that note, what exactly is located to those addresses? I have some kind of understanding of the Init and Play parts but the Load part is what I don't understand. The "Loading a tune into RAM" part doesn't seem to mention the address at all.

I only need the player to support NSF files exported from FamiTracker and only support VRC6 and NTSC mode for now. Since I'm working on single-track NSF files I probably don't need to implement bank swapping either. I only plan on implementing mandatory features since it's not intended to support everything. Only the things I need it to support in order to work in my project.
*Please make sure you are using FamiTracker v0.5 when trying to open my ftm files*


Return to “Source and development”

Who is online

Users browsing this forum: No registered users and 1 guest