Use OPCODE for the RETURN and CONTINUE opcodes.

This commit is contained in:
Reece H. Dunn
2017-01-29 10:29:48 +00:00
parent b937d37e93
commit f2bb482782
3 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -758,7 +758,7 @@ int NumInstnWords(USHORT *prog)
// This instruction is followed by addWav(), 2 more words
return 4;
}
if (instn2 == i_CONTINUE)
if (instn2 == OPCODE_CONTINUE)
return 3;
return 2;
}
@@ -815,10 +815,10 @@ void InterpretPhoneme(Translator *tr, int control, PHONEME_LIST *plist, PHONEME_
// instructions with no operand
switch (data)
{
case i_RETURN:
case OPCODE_RETURN:
end_flag = 1;
break;
case i_CONTINUE:
case OPCODE_CONTINUE:
break;
default:
InvalidInstn(ph, instn);
@@ -956,7 +956,7 @@ void InterpretPhoneme(Translator *tr, int control, PHONEME_LIST *plist, PHONEME_
param_sc = phdata->sound_param[instn2] = (instn >> 4) & 0xff;
prog++;
if (prog[1] != i_CONTINUE) {
if (prog[1] != OPCODE_CONTINUE) {
if (instn2 < 2) {
// FMT() and WAV() imply Return
end_flag = 1;