PDA

View Full Version : [coding] Razoola -or someone else- i need your help T_T



barf
10-12-2004, 03:21 PM
Would you be so kind as helping me on a neogeo programming point ?

I would like to execute music play requests from within my homebrew game.
Could someone point me out how to do this ? I guess i have to send few commands to the Z80 to tell it what track in the sound program to run but i don t know how to do this.

Thank you in advance , and even if you cannot(or do not want to) tell you still deserve a thank you :)

Razoola
10-12-2004, 03:38 PM
If your allowing the bios to init the sound than you simply need to send 0x07 and then the track number. With most games there will be a tune at 0x07 0x21.

You must send both bytes to address 0x320000 and there must be a delay between sending each value (a couple of frames will do it).

Raz

barf
10-12-2004, 05:27 PM
Thank you for the fast answer ! I will implement this tomorrow (time to sleep) :)

edit: i couldn t find sleep so i did it and it works ! thank you so much :)