* src/pic16/glue.c (pic16createInterruptVect): function now emits
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 28 Jun 2004 20:17:24 +0000 (20:17 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 28 Jun 2004 20:17:24 +0000 (20:17 +0000)
correctly the IVT even if it is relocated to some other location

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3369 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/pic16/glue.c

index e9d4a05c26ce654d765ad0815703c395b985e6c0..68a5eafa40f2575a7da37de502529d3094f849af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
+
+       * src/pic16/glue.c (pic16createInterruptVect): function now emits
+       correctly the IVT even if it is relocated to some other location
+
 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
 
        * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
index 99f0c3026bf0e5b904a02998f1b9ff1aab4a3d8b..0792e8ca552092eec6e8e4d9e6a67f67c12498ea 100644 (file)
@@ -1284,7 +1284,7 @@ pic16createInterruptVect (FILE * vFile)
 
        if((!pic16_options.omit_ivt) || (pic16_options.omit_ivt && pic16_options.leave_reset)) {
                fprintf (vFile, ";\t.area\t%s\n", CODE_NAME);
-               fprintf(vFile, ".intvecs\tcode\t0x0000\n");
+               fprintf(vFile, ".intvecs\tcode\t0x%06x\n", pic16_options.ivt_loc);
                fprintf (vFile, "__interrupt_vect:\n");
 
                /* this is an overkill since WE are the port,