Page 1 of 1

FamiTracker: Compiling to NSF driver source trouble

Posted: Tue Jul 09, 2013 5:26 pm
by Sanchezman
So, I tried following the instructions at viewtopic.php?t=6530, but I run into a strange problem.

After generating the .nsf file, I added it to my project, and the game didn't load properly. I went to the debugger, and realized that the nsf file had $2000 bytes of zeroes preceding it. I removed the zeroes in a hex editor, but it didn't work, because now the game just blasts white noise (yet is playable). Is there something I am missing?

Here is my nsf.cfg file:

Code: Select all

MEMORY {
            ZP: 	start = $20, 	size = $D0, 	type = rw, file = "";
            RAM: 	start = $500, 	size = $200, 	type = rw, file = "";
            HDR: 	start = $7F80, 	size = $80, 	type = ro, file = %O;
            PRG: 	start = $8000, 	size = $40000, 	type = rw, file = %O;
       }

SEGMENTS {
            ZEROPAGE: 	load = ZP,  type = zp;
            BSS: 		load = RAM, type = bss, define = yes;
            CODE: 		load = PRG, type = rw, start = $A000;
         }
I loaded it at $A000, init'd it at $A000, and played it at $A003

Thanks in advance.

Re: FamiTracker: Compiling to NSF driver source trouble

Posted: Tue Jul 09, 2013 6:46 pm
by rainwarrior
I created a more up-to-date guide here:
http://famitracker.com/forum/posts.php?page=1&id=3681

For the newer drivers, you'll probably want to add the following before you include driver.s:

Code: Select all

RELOCATE_MUSIC = 1
Other than that, it should be straightforward unless there's bankswitching involved.

Re: FamiTracker: Compiling to NSF driver source trouble

Posted: Tue Jul 09, 2013 9:55 pm
by Sanchezman
rainwarrior wrote:I created a more up-to-date guide here:
http://famitracker.com/forum/posts.php?page=1&id=3681
Hmm... that link doesn't work for me.

Re: FamiTracker: Compiling to NSF driver source trouble

Posted: Tue Jul 09, 2013 10:22 pm
by rainwarrior
I think famitracker.com has been having some problems, but try again later, it should load eventually.