{"p16f627", "16f627", "pic16f627", "f627"}, /* processor name */
(memRange *)NULL,
(memRange *)NULL,
- 0, /* max ram address (calculated) */
- 0x80, /* Bank Mask */
+ 0, /* max ram address (calculated) */
+ 0x1ff, /* default max ram address */
+ 0x80, /* Bank Mask */
},
{
(memRange *)NULL,
(memRange *)NULL,
0,
+ 0x1ff,
0x80,
},
(memRange *)NULL,
(memRange *)NULL,
0,
+ 0xcf,
0x80,
},
(memRange *)NULL,
(memRange *)NULL,
0,
+ 0x1ff,
0x180,
},
(memRange *)NULL,
(memRange *)NULL,
0,
+ 0x1ff,
0x180,
},
(memRange *)NULL,
(memRange *)NULL,
0,
+ 0x1ff,
0x80,
},
return 0;
}
+
+/*-----------------------------------------------------------------*
+*
+*-----------------------------------------------------------------*/
+void setDefMaxRam(void)
+{
+ setMaxRAM(pic->defMaxRAMaddrs); // Max RAM has not been included, so use default setting
+}
memRange *sfr; /* SFR memory map */
int maxRAMaddress; /* maximum value for a data address */
+ int defMaxRAMaddrs; /* default maximum value for a data address */
int bankMask; /* Bitmask that is ANDed with address to extract banking bits */
// int hasAliasedRAM:1; /* True if there are bank independent registers */
int REGallBanks(regs *reg);
void addMemRange(memRange *r, int type);
void setMaxRAM(int size);
+void setDefMaxRam(void);
#endif /* __DEVICE_H__ */
pBlock *pb;
if(!picIsInitialized()) {
- fprintf(stderr,"Temporary ERROR: at the moment you have to use\n");
- fprintf(stderr,"an include file create by inc2h.pl. See SDCC source:\n");
- fprintf(stderr,"support/scripts/inc2h.pl\n");
- fprintf(stderr,"this is a nuisance bug that will be fixed shortly\n");
+// fprintf(stderr,"Temporary ERROR: at the moment you have to use\n");
+// fprintf(stderr,"an include file create by inc2h.pl. See SDCC source:\n");
+// fprintf(stderr,"support/scripts/inc2h.pl\n");
+// fprintf(stderr,"this is a nuisance bug that will be fixed shortly\n");
- exit(1);
+// exit(1);
+ setDefMaxRam(); // Max RAM has not been included, so use default setting
}
/* Phase x - Flow Analysis - Used Banks