| int CompileSound(int keyword, int isvowel) | |||||
| static void CompileSound(int keyword, int isvowel) | |||||
| { | { | ||||
| int addr; | int addr; | ||||
| int value = 0; | int value = 0; | ||||
| *prog_out++ = sound_instns[keyword-kFMT] + ((value & 0xff) << 4) + ((addr >> 16) & 0xf); | *prog_out++ = sound_instns[keyword-kFMT] + ((value & 0xff) << 4) + ((addr >> 16) & 0xf); | ||||
| *prog_out++ = addr & 0xffff; | *prog_out++ = addr & 0xffff; | ||||
| return 0; | |||||
| } | } | ||||
| /* | /* | ||||
| if_stack[if_level].returned = 1; | if_stack[if_level].returned = 1; | ||||
| DecThenCount(); | DecThenCount(); | ||||
| if (phoneme_out->type == phVOWEL) | if (phoneme_out->type == phVOWEL) | ||||
| endphoneme = CompileSound(keyword, 1); | |||||
| CompileSound(keyword, 1); | |||||
| else | else | ||||
| endphoneme = CompileSound(keyword, 0); | |||||
| CompileSound(keyword, 0); | |||||
| break; | break; | ||||
| case kWAV: | case kWAV: | ||||
| if_stack[if_level].returned = 1; | if_stack[if_level].returned = 1; | ||||
| case kVOWELENDING: | case kVOWELENDING: | ||||
| case kANDWAV: | case kANDWAV: | ||||
| DecThenCount(); | DecThenCount(); | ||||
| endphoneme = CompileSound(keyword, 0); | |||||
| CompileSound(keyword, 0); | |||||
| break; | break; | ||||
| case kVOWELIN: | case kVOWELIN: | ||||
| DecThenCount(); | DecThenCount(); |