git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1215
4a8a32a2-be11-0410-ad9d-
d568d2c75423
bool verboseExec = FALSE;
char *preOutName;
bool verboseExec = FALSE;
char *preOutName;
+/* uncomment JAMIN_DS390 to always override and use ds390 port
+ for mcs51 work. This is temporary, for compatibility testing. */
+/* #define JAMIN_DS390 */
+#ifdef JAMIN_DS390
+int ds390_jammed = 0;
+#endif
+
// Globally accessible scratch buffer for file names.
char scratchFileName[FILENAME_MAX];
// Globally accessible scratch buffer for file names.
char scratchFileName[FILENAME_MAX];
}
_findPort (argc, argv);
}
_findPort (argc, argv);
+#ifdef JAMIN_DS390
+ if (strcmp(port->target, "mcs51") == 0) {
+ printf("DS390 jammed in A\n");
+ _setPort ("ds390");
+ ds390_jammed = 1;
+ }
+#endif
/* Initalise the port. */
if (port->init)
port->init ();
/* Initalise the port. */
if (port->init)
port->init ();
+#ifdef JAMIN_DS390
+ if (ds390_jammed) {
+ options.model = MODEL_SMALL;
+ options.stack10bit=0;
+ }
+#endif
parseCmdLine (argc, argv);
if (getenv("SDCPP"))
parseCmdLine (argc, argv);
if (getenv("SDCPP"))