First off, to make a timer, declare a variable. Start this variable at 0. When it reaches 255, have your timed event, then reinitialize the timer. Basically, it's a for loop, but if you don't have a for statement in your language, it ends up looking like.
if (timer<255) {
timer+=1;
}
if (timer==255) {
//timed event stuff
timer=0;
}
As far as having sound that wraps around screens, while this isn't particularly difficult, it would be difficult for me to explain fully. Basically, you can put this in a logic that is called every cycle. Within this logic you put the sound_done_flag. This is easy enough. The hard part is the memory management. AGI is very shady as far as handling resources. Sound files are notorious.
Good luck, good games.