X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=riscasm.c;h=23faaee7120df76cc71cc95dadce3de262f4cf1c;hp=37e29224a99d78a172044102beb277e0eaf661f1;hb=0589a9f783b1eece660b534ed61858c2605e6aad;hpb=0e2c5f0a03900e42d76f8ef4c4f560e8a7ebca8b diff --git a/riscasm.c b/riscasm.c index 37e2922..23faaee 100644 --- a/riscasm.c +++ b/riscasm.c @@ -323,6 +323,15 @@ int GenerateRISCCode(int state) tok++; riscImmTokenSeen = 1; + // Check for equated register after # and return error if so + if (*tok == SYMBOL) + { + sy = lookup(string[tok[1]], LABEL, 0); + + if (sy->sattre & EQUATEDREG) + return error("equated register in 1st operand of MOVEI instruction"); + } + if (expr(r_expr, &eval, &eattr, &esym) != OK) return MalformedOpcode(0x04);