X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=riscasm.c;h=78bae9c290a3f506088050a3644de1546e4fe142;hb=d9c1d993917d9f0101747e137709fe2ba9854b7f;hp=23faaee7120df76cc71cc95dadce3de262f4cf1c;hpb=0589a9f783b1eece660b534ed61858c2605e6aad;p=rmac diff --git a/riscasm.c b/riscasm.c index 23faaee..78bae9c 100644 --- a/riscasm.c +++ b/riscasm.c @@ -328,7 +328,7 @@ int GenerateRISCCode(int state) { sy = lookup(string[tok[1]], LABEL, 0); - if (sy->sattre & EQUATEDREG) + if (sy && (sy->sattre & EQUATEDREG)) return error("equated register in 1st operand of MOVEI instruction"); }