* as/hc08/aslex.c,
[fw/sdcc] / as / mcs51 / lkihx.c
index 6f2b156b4140abbe0e118296ebe7fdb5dcfc5c5c..8a5aa3effab2651908551ed6bf8b27cbeaa0d74c 100644 (file)
@@ -136,7 +136,7 @@ hexRecord(unsigned addr, int rtvalIndex)
        if (chksum == 0)
                return;                 // nothing to output
 
-       if (lastHexAddr > addr) {
+       if ( (lastHexAddr > addr) && (rflag) ) {
                overrun = hexPageOverrun + 1;
                ihxEntendedLinearAddress(lastExtendedAddress + overrun);
                hexPageOverrun = overrun;