X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=riscasm.c;h=78bae9c290a3f506088050a3644de1546e4fe142;hp=37e29224a99d78a172044102beb277e0eaf661f1;hb=9e2fe1917a6ad9127e620eb908bba20421e52c89;hpb=29dd8f10767ccf362235d6f9e0fbf4f557af3d27 diff --git a/riscasm.c b/riscasm.c index 37e2922..78bae9c 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 && (sy->sattre & EQUATEDREG)) + return error("equated register in 1st operand of MOVEI instruction"); + } + if (expr(r_expr, &eval, &eattr, &esym) != OK) return MalformedOpcode(0x04);