Stopped matching non-opcode tokens that start with an opcode.

This commit is contained in:
Andrew Alderwick 2021-03-26 20:16:14 +00:00
parent a5ec692b0a
commit b60fa9d6dd
1 changed files with 2 additions and 2 deletions

View File

@ -155,8 +155,8 @@ findopcode(char *s)
continue;
while(s[3 + m]) {
if(s[3 + m] == '2') i |= (1 << 5); /* mode: short */
if(s[3 + m] == 'r') i |= (1 << 6); /* mode: return */
if(s[3 + m] == '?') return 0; /* forget that conditionals exist */
else if(s[3 + m] == 'r') i |= (1 << 6); /* mode: return */
else return 0; /* failed to match */
m++;
}
return i;