X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=riscasm.c;h=78bae9c290a3f506088050a3644de1546e4fe142;hp=23faaee7120df76cc71cc95dadce3de262f4cf1c;hb=850b5921f82266f0a416dc24ab44731f9692d4d9;hpb=0589a9f783b1eece660b534ed61858c2605e6aad 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"); }