X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.c;h=16a802577dcb2d8ba903e52b9aaeb5ce38bde7f4;hp=3e127656916367fa1f7573336582f7a951f9501e;hb=0c583009c5819e1774b24ef3cb59dde468fd3f60;hpb=ff8188b7e279f99cf11ac8a283c4146af324d26f diff --git a/sect.c b/sect.c index 3e12765..16a8025 100644 --- 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.