*** empty log message ***
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 4 Sep 2003 15:47:17 +0000 (15:47 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 4 Sep 2003 15:47:17 +0000 (15:47 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2873 4a8a32a2-be11-0410-ad9d-d568d2c75423

15 files changed:
src/pic16/device.c
src/pic16/device.h
src/pic16/gen.c
src/pic16/gen.h
src/pic16/genarith.c
src/pic16/glue.c
src/pic16/main.c
src/pic16/pcode.c
src/pic16/pcodeflow.c
src/pic16/pcodeflow.h
src/pic16/pcodepeep.c
src/pic16/pcoderegs.c
src/pic16/pcoderegs.h
src/pic16/ralloc.c
src/pic16/ralloc.h

index 3996e4508974501265bbf26a9895fe20a23e9d05..cecd52bedf2d1d8668ecc392d6a1b667dea8e93b 100644 (file)
@@ -1,6 +1,7 @@
 /*-------------------------------------------------------------------------
 
-   device.c - Accomodates subtle variations in PIC16 devices
+  device.c - Accomodates subtle variations in PIC16 devices
+
    Written By -  Scott Dattalo scott@dattalo.com
    Ported to PIC16 By -  Martin Dubuc m.dubuc@rogers.com
 
index 3c68311351fb57c91072991710c16b07c401b4a2..b18031759da3c10200234a762947f445e26a9ed2 100644 (file)
@@ -1,6 +1,7 @@
 /*-------------------------------------------------------------------------
 
-   device.c - Accomodates subtle variations in PIC16 devices
+  device.c - Accomodates subtle variations in PIC16 devices
+
    Written By -  Scott Dattalo scott@dattalo.com
 
    This program is free software; you can redistribute it and/or modify it
index d9fd14dca675ae07a7f9ddeca7313dfcfc1ae43c..0245249bbcc8d7651f5090e97a67ca8cd24908df 100644 (file)
@@ -1,5 +1,5 @@
 /*-------------------------------------------------------------------------
 gen.c - source file for code generation for pic16
+ gen.c - source file for code generation for pic16
 
   Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
          and -  Jean-Louis VERN.jlvern@writeme.com (1999)
index 1b737d4cee8fda1fc7976bac7e04dd3633055da3..90294755b4a379bb409a7d0d5a3be744d6da9ba2 100644 (file)
@@ -1,5 +1,5 @@
 /*-------------------------------------------------------------------------
-  SDCCgen51.h - header file for code generation for 8051
+  gen.h - header file for code generation for PIC16
 
              Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
             PIC port   - T. Scott Dattalo scott@dattalo.com (2000)
@@ -24,8 +24,8 @@
    what you give them.   Help stamp out software-hoarding!  
 -------------------------------------------------------------------------*/
 
-#ifndef SDCCGENPIC14_H
-#define SDCCGENPIC14_H
+#ifndef SDCCGENPIC16_H
+#define SDCCGENPIC16_H
 
 struct pCodeOp;
 
index 0bf43881e1cd43a8b35ab1459fb71eb0368f2eda..9f6a859579a900255da5c32ce4df61ccb51700a4 100644 (file)
@@ -1,5 +1,6 @@
 /*-------------------------------------------------------------------------
-  genarith.c - source file for code generation - arithmetic 
+
+ genarith.c - source file for code generation - arithmetic 
   
   Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
          and -  Jean-Louis VERN.jlvern@writeme.com (1999)
index fac38d547d0e08f9944c828dae769c8e025dffb2..ba58923f95d6d51c0d8b65c049c24308ef97878f 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
 
-  SDCCglue.c - glues everything we have done together into one file.
+  glue.c - glues everything we have done together into one file.
                 Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
 
    This program is free software; you can redistribute it and/or modify it
index 075458212ea490b5ff871d675796eaa11a023a72..d41540df164003a7ae6cffa13e7752ad09ce08cf 100644 (file)
@@ -1,9 +1,29 @@
-/** @file main.c
-    pic16 specific general functions.
+/*-------------------------------------------------------------------------
+
+  main.c - pic16 specific general functions.
+
+   Written by - Scott Dattalo scott@dattalo.com
+   Ported to PIC16 by - Martin Dubuc m.debuc@rogers.com
+    
+   Note that mlh prepended _pic16_ on the static functions.  Makes
+   it easier to set a breakpoint using the debugger.
+
+
+   This program is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License as published by the
+   Free Software Foundation; either version 2, or (at your option) any
+   later version.
+   
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+   
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+-------------------------------------------------------------------------*/
 
-    Note that mlh prepended _pic16_ on the static functions.  Makes
-    it easier to set a breakpoint using the debugger.
-*/
 #include "common.h"
 #include "main.h"
 #include "ralloc.h"
index b1823026ce047c0ff3368ac7871a14caa255c909..3ed977734e1b37d23ad5d55ad4c66783317b0b88 100644 (file)
@@ -1,6 +1,7 @@
 /*-------------------------------------------------------------------------
 
-   pcode.c - post code generation
+  pcode.c - post code generation
+
    Written By -  Scott Dattalo scott@dattalo.com
    Ported to PIC16 By -  Martin Dubuc m.dubuc@rogers.com
 
@@ -5963,11 +5964,14 @@ static void pic16_FixRegisterBanking(pBlock *pb)
        }
 #endif
 
+/*
 #if !defined(__BORLANDC__) && !defined(_MSC_VER)
    #warning Fix this if-conditional
 #else
     #pragma message( "warning Fix this if-conditional" )
 #endif
+*/
+
        /* the !(reg->rIdx==-1) is a temporary hack. It should be changed - VR 6-Jun-2003 */
        if( ( (reg /*&& !(reg->rIdx==-1)*/ && !isACCESS_BANK(reg) && (isBankInstruction(pc)==-1) && !(reg->alias == 0x80) )
                 /*|| (PCI(pc)->op != POC_CALL)*/ )
index 77b2b48e4b45c38d88621eeb7c5cfef799f43816..a317d5392b3834f64e3f3c1628be8ac148672370 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
 
-   pcodeflow.c - post code generation flow analysis
+  pcodeflow.c - post code generation flow analysis
 
    Written By -  Scott Dattalo scott@dattalo.com
    Ported to PIC16 By -  Martin Dubuc m.dubuc@rogers.com
index b451dea799b5d71fd91cc6d8241f65a1d307d4d0..ad9c3b46c86253e7025165114d0d3513b41c496f 100644 (file)
@@ -1,6 +1,7 @@
 /*-------------------------------------------------------------------------
 
-   pcode.h - post code generation
+  pcode.h - post code generation
+
    Written By -  Scott Dattalo scott@dattalo.com
    PIC16 port -  Martin Dubuc m.dubuc@rogers.com
 
index a6786be4c1073785ffa9e10940256f555d79118c..5be20126fa03f2893f67edf3df3b714820abe5da 100644 (file)
@@ -1,6 +1,7 @@
 /*-------------------------------------------------------------------------
 
-   pcodepeep.c - post code generation
+  pcodepeep.c - post code generation
+
    Written By -  Scott Dattalo scott@dattalo.com
    Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com
 
index 3bf620b3bea96f1e51d559657217e2cb98d35919..525a1bae5fa00cd125653d32f5ec708507779c77 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
 
-   pcoderegs.c - post code generation register optimizations
+  pcoderegs.c - post code generation register optimizations
 
    Written By -  Scott Dattalo scott@dattalo.com
    Ported To PIC16 By -  m.dubuc@rogers.com
index c37d72f4c544f1184984c9108b7f3442408b1a1d..6ee056e3934305ec831d4aae026762bdb982d397 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
 
-   pcoderegs.h - post code generation register optimizations
+  pcoderegs.h - post code generation register optimizations
 
    Written By -  Scott Dattalo scott@dattalo.com
 
index c1c6da37b3ab73161a194b2a589448a9598ef9ab..03849b7d83365b9bed22f66eb237ae2f5fbf2cba 100644 (file)
@@ -1,6 +1,6 @@
 /*------------------------------------------------------------------------
 
-  SDCCralloc.c - source file for register allocation. (8051) specific
+  ralloc.c - source file for register allocation. PIC16 specific
 
                 Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
                Added Pic Port T.scott Dattalo scott@dattalo.com (2000)
index 6801ce3736091d4eb25d98313848536717d29293..cce622800bd0114b903aac71133daf2c75db8dee 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
 
-  SDCCralloc.h - header file register allocation
+  ralloc.h - header file register allocation
 
        Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
        PIC port   - T. Scott Dattalo scott@dattalo.com (2000)