It is currently Fri Dec 15, 2017 2:53 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Dec 11, 2017 12:00 pm 
Offline

Joined: Sun Dec 10, 2017 9:01 am
Posts: 1
I have been struggling with getting a NSF file to playback with my code. I have been looking at https://wiki.nesdev.com/w/index.php/NSF , and used the metroid.nsf like in the example.

But i have gotten stuck at this:
" so we set up our ROM image with contiguous data starting from $080 in the file.
This NSF has 6 4k banks in it, numbered 0 through 5. It specifies that each of the 8 memory regions should be switched to bank 5, which begins at $05 * $1000 bytes in the ROM image."

How do i suppose load in the nsf file and where? i tried $8000 becuse its the load address, couldn't get that to work. Tried $5000 becuse "It specifies that each of the 8 memory regions should be switched to bank 5" wich i do not really understand... but didn't work either :P
Should i load in part of the nsf at $8000, and the some other part in $5000 becuse of the bank switching? And how do i split up the file in NESASM code?

I used:
.org $8000
.incbin "metroid-NOHEADER.nsf"

when loading in the file

( i'm new to this )


Top
 Profile  
 
PostPosted: Wed Dec 13, 2017 2:52 pm 
Offline
User avatar

Joined: Thu Apr 23, 2009 11:21 pm
Posts: 806
Location: cypress, texas
Hello swee,

When I tried to make music work in the game I'm working on, was referred to use famitone. Now famitone2 is out. Shiru created them. There is a file in the tools folder called nsf2data.exe. I'm unsure if you can use it to convert your nsf file into assembly code because Shiru, in the readme.txt, only talks about using nsf2data.exe for converting sound effects. I don't think you can just use nsf files in assembly... only assembly codes can be used in assembly. The readme.txt file suggests using FamiTracker to create your own song and then converting that into assembly.

Actually, I remember learning that converting nsf music files into assembly isn't allowed because that could enable copyright infringement. :)


Top
 Profile  
 
PostPosted: Wed Dec 13, 2017 3:29 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5898
Location: Canada
Metroid is a bankswitching NSF, it's not going to work like that.

You need to try with a non-bankswitching NSF instead.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group