]> Shamusworld >> Repos - rmac/blobdiff - riscasm.c
Fix silly mask bugs, added check for use of undefined register equates.
[rmac] / riscasm.c
similarity index 98%
rename from risca.c
rename to riscasm.c
index 472e4f1e3d1da6b068b0f55959c01bebb53a6b60..fbc8f81cf605ff2a14178c7754b9c64bac94718b 100644 (file)
--- a/risca.c
+++ b/riscasm.c
@@ -6,7 +6,7 @@
 // Source Utilised with the Kind Permission of Landon Dyer
 //
 
-#include "risca.h"
+#include "riscasm.h"
 #include "error.h"
 #include "sect.h"
 #include "token.h"
@@ -171,6 +171,15 @@ int GetRegister(WORD rattr)
        if ((challoc - ch_size) < 4)
                chcheck(4L);
 
+       // See if this symbol has been defined, then undefined:
+//does nothing
+//segfaults now (esym == NULL?)
+/*     if (esym->sattre & UNDEF_EQUR)
+       {
+               error("undefined register");
+               return ERROR;
+       }*/
+
        if (!(eattr & DEFINED))
        {
                fixup((WORD)(FU_WORD | rattr), sloc, r_expr);