From 8e3f99481c8939c1eebbbb1e26b1bd16de4dcd2a Mon Sep 17 00:00:00 2001 From: sdattalo Date: Tue, 23 Mar 2004 14:49:51 +0000 Subject: [PATCH] multi-byte complements were failing git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3276 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ src/pic/gen.c | 2 +- src/regression/Makefile | 6 ++++-- src/regression/rt.sh | 5 ++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7868d5d..beb18e72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-23 Scott Dattalo + + * src/pic/gen.c (genCpl): multi-byte complements were not working. + * src/regression/Makefile: Regression test was not running. + 2004-03-22 Bernhard Held * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can diff --git a/src/pic/gen.c b/src/pic/gen.c index a31f3652..89e46791 100644 --- a/src/pic/gen.c +++ b/src/pic/gen.c @@ -1887,7 +1887,7 @@ static void genCpl (iCode *ic) emitpcode(POC_COMFW,popGet(AOP(left),offset)); emitpcode(POC_MOVWF,popGet(AOP(result),offset)); - + offset++; } diff --git a/src/regression/Makefile b/src/regression/Makefile index 50df1b67..3e096e78 100644 --- a/src/regression/Makefile +++ b/src/regression/Makefile @@ -49,6 +49,7 @@ CC = ../../bin/sdcc LINKER = gplink TARGETPIC = 16f873 +TARGETPIC2 = 16f877 CFLAGS = -mpic14 -c -pp$(TARGETPIC) .SUFFIXES: .asm .c .cod .stc @@ -87,7 +88,6 @@ SRC = b.c \ rotate3.c \ rotate4.c \ rotate5.c \ - struct1.c \ sub.c \ sub2.c \ switch1.c \ @@ -95,6 +95,7 @@ SRC = b.c \ xor.c \ ptrfunc.c +# struct1.c \ # mul1.c \ COD := $(patsubst %.c, %.cod, $(SRC)) @@ -115,7 +116,7 @@ all: test # The .cod files are generated by gpasm # these get loaded by gpsim. .o.cod: - $(LINKER) --map -c -s $(TARGETPIC).lkr -o $*.o $*.o + $(LINKER) --map -c -s $(TARGETPIC2).lkr -o $*.o $*.o # gpasm $*.asm @@ -140,6 +141,7 @@ o : $(O) asm : $(ASM) stc : $(STC) + echo $(STC) test: $(STC) echo "Done - Results are in $(LOGFILE)" diff --git a/src/regression/rt.sh b/src/regression/rt.sh index 5b1ca1fc..a99c859e 100755 --- a/src/regression/rt.sh +++ b/src/regression/rt.sh @@ -8,10 +8,9 @@ if [ $# -lt 1 ] ; then fi # compile -# ../../bin/sdcc -S -mpic14 $1.c + ../../bin/sdcc -c -mpic14 -pp16f873 $1.c -#gpasm -c -I /usr/local/share/gpasm/header $1.asm -#gpasm $1.asm + # create the executable -- 2.39.5