uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit b60fa9d6dd0a414f45d6fad81775b4161c22ceef
parent a5ec692b0aa2fb98d10e74df3cc5fb4ae4f9dbee
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Fri, 26 Mar 2021 20:16:14 +0000

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

Diffstat:
Msrc/assembler.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/assembler.c b/src/assembler.c @@ -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;