X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.c;fp=sect.c;h=16a802577dcb2d8ba903e52b9aaeb5ce38bde7f4;hp=3e127656916367fa1f7573336582f7a951f9501e;hb=2ede3731285f3bc20f5493de593442e872db4d32;hpb=c2caacfdc844e2f8b5d05b0699fbacc04b4ce8ea 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.