From f193b96a9ed020f9697fbc8acab6b0bf12c5cd56 Mon Sep 17 00:00:00 2001 From: epetrich Date: Thu, 6 Nov 2003 14:52:13 +0000 Subject: [PATCH] * device/lib/hc08/Makefile: need to clean .rel not .o files * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2994 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ device/lib/hc08/Makefile | 2 +- src/hc08/gen.c | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea172b90..94047225 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-06 Erik Petrich + + * device/lib/hc08/Makefile: need to clean .rel not .o files + * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode + 2003-11-06 Erik Petrich * src/port.h, diff --git a/device/lib/hc08/Makefile b/device/lib/hc08/Makefile index fc53ea7c..c690a372 100644 --- a/device/lib/hc08/Makefile +++ b/device/lib/hc08/Makefile @@ -29,4 +29,4 @@ $(LIB): $(OBJ) Makefile _dummy _dummy: clean: - rm -f *.o *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib + rm -f *.rel *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib diff --git a/src/hc08/gen.c b/src/hc08/gen.c index 1a71fd2e..12a0982c 100644 --- a/src/hc08/gen.c +++ b/src/hc08/gen.c @@ -7220,6 +7220,10 @@ genDjnz (iCode * ic, iCode * ifx) if (operandLitValue (IC_RIGHT (ic)) != 1) return 0; + /* dbnz doesn't support extended mode */ + if (isOperandInFarSpace (IC_RESULT (ic))) + return 0; + /* if the size of this greater than one then no saving */ // if (getSize (operandType (IC_RESULT (ic))) > 1) -- 2.30.2