Fixed bug #899105: misplaced 'LBA' record in intel hex output
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 17 Apr 2004 19:07:02 +0000 (19:07 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 17 Apr 2004 19:07:02 +0000 (19:07 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3291 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
as/mcs51/lkihx.c

index 204b7c0b29339b2be84a9f882f6056f06b8a32e1..74ceaa6bf54aa22c3b2b8e26d5f5d1e58189373e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
+
+       * as/mcs51/lkihx.c: Fixed bug #899105.
+
 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
 
        * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
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;