]> Shamusworld >> Repos - rmac/blobdiff - sect.c
Various small fixes and additions to the 680x0 parts:
[rmac] / sect.c
diff --git a/sect.c b/sect.c
index 3e127656916367fa1f7573336582f7a951f9501e..16a802577dcb2d8ba903e52b9aaeb5ce38bde7f4 100644 (file)
--- a/sect.c
+++ b/sect.c
@@ -551,10 +551,19 @@ int ResolveFixups(int sno)
 
                                if (eval == 0)
                                {
-                                       error("illegal bra.s with zero offset");
-                                       continue;
+                                       if (CHECK_OPTS(OPT_NULL_BRA))
+                                       {
+                                               // just output a nop
+                                               *locp++ = 0x4E;
+                                               *locp = 0x71;
+                                               continue;
+                                       }
+                                       else
+                                       {
+                                               error("illegal bra.s with zero offset");
+                                               continue;
+                                       }
                                }
-
                                *++locp = (uint8_t)eval;
                                break;
                        // Fixup one-byte value at locp + 1.