From af51e4cd84bc9836cd1a586fa4081c165699c7ef Mon Sep 17 00:00:00 2001 From: jesusc Date: Sat, 17 Apr 2004 19:07:02 +0000 Subject: [PATCH] Fixed bug #899105: misplaced 'LBA' record in intel hex output git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3291 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ as/mcs51/lkihx.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 204b7c0b..74ceaa6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-04-17 Jesus Calvino-Fraga + + * as/mcs51/lkihx.c: Fixed bug #899105. + 2004-04-16 Jesus Calvino-Fraga * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and diff --git a/as/mcs51/lkihx.c b/as/mcs51/lkihx.c index 6f2b156b..8a5aa3ef 100644 --- a/as/mcs51/lkihx.c +++ b/as/mcs51/lkihx.c @@ -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; -- 2.30.2