06-15-2012, 08:43 AM
LCD Wrote:I want to play music in interrupts (in a different memory bank), switch to other song, and switch the music off. I also want to keep the FRAMES counter to re-RANDOMIZE events on the fly and keep the track how long ago the last event occured.
The easiest way at the moment seems to change the CALL in the Interrupt-Routine to a adrees contains RET (201).
*resurrects an old thread*
Have a look at the code for BerksMan - it's all timing based, so I needed FRAMES to increase even if I was playing a sound. As a result, I wrote an IM2 routine that updates frames and returns, and instead of DI for sound I did IM2. This didn't actually affect the sound too badly, and meant that my timing keeps on going no matter what.
I went back to IM1 when the sound stopped.