fprintf (stderr,
"*** error: ds390 port only supports the 10 bit stack mode.\n");
} else {
- if (!options.stack_loc) options.stack_loc = 0x400007;
+ if (!options.stack_loc) options.stack_loc = 0x400008;
}
/* generate native code 16*16 mul/div */
return FALSE;
}
- fprintf (of, "\tajmp\t__sdcc_gsinit_startup\n");
+ fprintf (of, "\tajmp\t__reset_vect\n");
/* now for the other interrupts */
for (i = 0; i < maxInterrupts; i++)
}
}
+ fprintf (of, "__reset_vect:\n\tljmp\t__sdcc_gsinit_startup\n");
+
return TRUE;
}
TARGET_ID_DS390,
"ds390",
"DS80C390", /* Target name */
+ NULL,
{
TRUE, /* Emit glue around main */
MODEL_SMALL | MODEL_LARGE | MODEL_FLAT24,
"_",
_ds390_init,
_ds390_parseOptions,
+ NULL,
_ds390_finaliseOptions,
_ds390_setDefaultOptions,
ds390_assignRegisters,
fprintf(stderr,"TININative supports only stack10bit \n");
}
- if (!options.stack_loc) options.stack_loc = 0x400007;
+ if (!options.stack_loc) options.stack_loc = 0x400008;
/* generate native code 16*16 mul/div */
if (options.useAccelerator)
};
char buffer[100];
- buildCmdLine(buffer,macroCmd,srcFileName,NULL,NULL,NULL);
+ buildCmdLine(buffer,macroCmd,dstFileName,NULL,NULL,NULL);
if (my_system(buffer)) {
exit(1);
}
- buildCmdLine(buffer,a390Cmd,srcFileName,NULL,NULL,asmOptions);
+ buildCmdLine(buffer,a390Cmd,dstFileName,NULL,NULL,asmOptions);
if (my_system(buffer)) {
exit(1);
}
TARGET_ID_DS390,
"TININative",
"DS80C390", /* Target name */
+ NULL, /* processor */
{
FALSE, /* Emit glue around main */
MODEL_FLAT24,
"",
_tininative_init,
_ds390_parseOptions,
+ NULL,
_tininative_finaliseOptions,
_tininative_setDefaultOptions,
ds390_assignRegisters,