So, I tried following the instructions at http://forums.nesdev.com/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:
I loaded it at $A000, init'd it at $A000, and played it at $A003
Thanks in advance.
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:
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;
}
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.