mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
Fix the naive opcode checks.
Confusing . with .=, and < and <= with more <MOVE etc isn't good.
This commit is contained in:
parent
dc9d2a982e
commit
60d03dbdd9
1 changed files with 4 additions and 1 deletions
|
@ -199,7 +199,10 @@ find_operands (statement_t *s, operand_t **x, operand_t **y, operand_t **z,
|
|||
// except for move, indexed pointer store, rcall2+, and state,
|
||||
// all are of the form c = a op b
|
||||
*z = s->opb;
|
||||
if (s->opcode[0] == '<' || s->opcode[0] == '.') {
|
||||
if (!strncmp (s->opcode, "<MOVE", 5)
|
||||
|| !strncmp (s->opcode, "<RCALL", 6)
|
||||
|| !strcmp (s->opcode, "<STATE>")
|
||||
|| !strcmp (s->opcode, ".=")) {
|
||||
*w = s->opc;
|
||||
} else {
|
||||
*x = s->opc;
|
||||
|
|
Loading…
Reference in a new issue