]> git.gag.com Git - fw/sdcc/commitdiff
multi-byte complements were failing
authorsdattalo <sdattalo@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 23 Mar 2004 14:49:51 +0000 (14:49 +0000)
committersdattalo <sdattalo@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 23 Mar 2004 14:49:51 +0000 (14:49 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3276 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/pic/gen.c
src/regression/Makefile
src/regression/rt.sh

index d7868d5db4fd719352c1d66cbbcbe5e71035c0fb..beb18e72dac16fe928201f6ec5e48b873bfe957d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-23  Scott Dattalo  <scott AT dattalo.com>
+
+       * src/pic/gen.c (genCpl): multi-byte complements were not working.
+       * src/regression/Makefile: Regression test was not running.
+
 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
 
        * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
index a31f36528e1ffffe951924e2168ae59ef92c8479..89e46791ef2adaa92c7353ad19e29b6c074fd2c1 100644 (file)
@@ -1887,7 +1887,7 @@ static void genCpl (iCode *ic)
       emitpcode(POC_COMFW,popGet(AOP(left),offset));
     
     emitpcode(POC_MOVWF,popGet(AOP(result),offset));
-    
+    offset++;
   }
   
   
index 50df1b67b2262a16dace8edeaab5fc63c9165108..3e096e7817eac2e18f72b01a00c0107d738dc7ba 100644 (file)
@@ -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)"
index 5b1ca1fc55a14f513909822d1bc8c0f4f27ad0e9..a99c859e23cc341cc28d1bc2445386f7b666f460 100755 (executable)
@@ -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