I have already finished the game for NES, but at last try join some music. I can leave this version without music but I think that make game feel much better whit song... Well some composer ceate song for me and I now must combine it all together.
I use CC65 with Shiru lib. In crt0.s I have:
music is converted with famitone2 (by Shiru) - result in two files: music.s (11330 bytes) and music_dpcm.bin (2944 bytes)
I try compile and have this error:
My config file is:
Yeah DMC size is 3a - I think that here is problem (58 bytes is not enought), but I don't know how add more memory (where is safe space). Trying with "happy luck" - is not good idea... crash is guaranteed
Anybody can help?
I use CC65 with Shiru lib. In crt0.s I have:
Code:
........
music_data:
.include "music.s"
.if(FT_SFX_ENABLE)
sounds_data:
.include "sounds.s"
.endif
.segment "SAMPLES"
.incbin "music_dpcm.bin"
........
music_data:
.include "music.s"
.if(FT_SFX_ENABLE)
sounds_data:
.include "sounds.s"
.endif
.segment "SAMPLES"
.incbin "music_dpcm.bin"
........
music is converted with famitone2 (by Shiru) - result in two files: music.s (11330 bytes) and music_dpcm.bin (2944 bytes)
I try compile and have this error:
Code:
ld65.exe: Warning: Memory area overflow in `DMC', segment `SAMPLES' (2886 bytes)
ld65.exe: Error: Cannot generate output due to memory area overflow
ld65.exe: Error: Cannot generate output due to memory area overflow
My config file is:
Code:
MEMORY {
ZP: start = $0000, size = $0100, type = rw, define = yes;
HEADER: start = $0000, size = $0010, file = %O ,fill = yes;
PRG: start = $8000, size = $7fc0, file = %O ,fill = yes, define = yes;
DMC: start = $ffc0, size = $003a, file = %O, fill = yes;
VECTORS: start = $fffa, size = $0006, file = %O, fill = yes;
CHR: start = $0000, size = $4000, file = %O, fill = yes;
RAM: start = $6000, size = $2000, define = yes;
#RAM: start = $0300, size = $0500, define = yes;
# Use this definition instead if you going to use extra 8K RAM
# RAM: start = $6000, size = $2000, define = yes;
}
SEGMENTS {
HEADER: load = HEADER, type = ro;
STARTUP: load = PRG, type = ro, define = yes;
LOWCODE: load = PRG, type = ro, optional = yes;
INIT: load = PRG, type = ro, define = yes, optional = yes;
CODE: load = PRG, type = ro, define = yes;
RODATA: load = PRG, type = ro, define = yes;
DATA: load = PRG, run = RAM, type = rw, define = yes;
VECTORS: load = VECTORS, type = rw;
SAMPLES: load = DMC, type = rw;
CHARS: load = CHR, type = rw;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes;
ZEROPAGE: load = ZP, type = zp;
}
ZP: start = $0000, size = $0100, type = rw, define = yes;
HEADER: start = $0000, size = $0010, file = %O ,fill = yes;
PRG: start = $8000, size = $7fc0, file = %O ,fill = yes, define = yes;
DMC: start = $ffc0, size = $003a, file = %O, fill = yes;
VECTORS: start = $fffa, size = $0006, file = %O, fill = yes;
CHR: start = $0000, size = $4000, file = %O, fill = yes;
RAM: start = $6000, size = $2000, define = yes;
#RAM: start = $0300, size = $0500, define = yes;
# Use this definition instead if you going to use extra 8K RAM
# RAM: start = $6000, size = $2000, define = yes;
}
SEGMENTS {
HEADER: load = HEADER, type = ro;
STARTUP: load = PRG, type = ro, define = yes;
LOWCODE: load = PRG, type = ro, optional = yes;
INIT: load = PRG, type = ro, define = yes, optional = yes;
CODE: load = PRG, type = ro, define = yes;
RODATA: load = PRG, type = ro, define = yes;
DATA: load = PRG, run = RAM, type = rw, define = yes;
VECTORS: load = VECTORS, type = rw;
SAMPLES: load = DMC, type = rw;
CHARS: load = CHR, type = rw;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes;
ZEROPAGE: load = ZP, type = zp;
}
Yeah DMC size is 3a - I think that here is problem (58 bytes is not enought), but I don't know how add more memory (where is safe space). Trying with "happy luck" - is not good idea... crash is guaranteed
Anybody can help?