ReC98/th02/snd/delayvol.c

23 lines
374 B
C

#pragma option -zCSHARED
#include "platform.h"
#include "x86real.h"
#include "libs/kaja/kaja.h"
#include "th02/snd/snd.h"
void snd_delay_until_volume(uint8_t volume)
{
while(1) {
_AH = KAJA_GET_VOLUME;
if(snd_midi_active != true) {
geninterrupt(PMD);
} else {
geninterrupt(MMD);
}
__asm cmp al, volume;
__asm jz end;
}
end:
}
#pragma codestring "\x90"