PCM->Hex conversion question

Topics on software tools like TileStudio, comments on documentation and tutorials (or the lack of) should go here.
User avatar
uze6666
Site Admin
Posts: 4812
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: PCM->Hex conversion question

Post by uze6666 »

Ok, I found it, my bad! :oops: I introduced a stupid bug when I added the feature to disable sound dynamically:

Code: Select all

#if ENABLE_MIXER==1
	lds ZL,sound_enabled
	cpse ZL,0
 	call ProcessMusic
#endif
At first everything seems fine eh?...Not! CPSE takes *two* registers and GCC doesn't even emit a warning in this case. It just assumed you meant r0! So depending on the execution context sound would be turned on/off randomly. I changed the cpse with a sbrc ZL,0 and that fixed it. It's been committed.

-Uze
User avatar
Harty123
Posts: 467
Joined: Wed Jan 12, 2011 9:30 pm
Location: PM, Germany
Contact:

Re: PCM->Hex conversion question

Post by Harty123 »

Hi,

yep. now it works fine! :D

The new Gorilla game is online now.

-Harty
Post Reply