};
extern int rewinds;
-void _xa51_genAssemblerEnd () {
+void _xa51_genAssemblerEnd (FILE * of)
+{
//fprintf (stderr, "Did %d rewind%c for c-line in asm comments\n", rewinds,
//rewinds==1 ? '\0' : 's');
}
static void
_xa51_finaliseOptions (void)
{
+ fprintf (stderr, "*** WARNING *** The XA51 port isn't yet complete\n");
port->mem.default_local_map = istack;
port->mem.default_globl_map = xdata;
if (options.model!=MODEL_PAGE0) {
fprintf (of, "\t.dw\t__sdcc_gsinit_startup\n");
fprintf (of, "\n");
fprintf (of, "__sdcc_gsinit_startup:\n");
- //fprintf (of, ";\tmov.b\t_SCR,#0x01\t; page zero mode\n");
+ fprintf (of, ";\tmov.b\t_SCR,#0x01\t; page zero mode\n");
fprintf (of, "\t.db 0x96,0x48,0x40,0x01\n");
fprintf (of, "\tmov\tr7,#0x%04x\n", options.stack_loc);
fprintf (of, "\tcall\t_external_startup\n");
*/
static const char *_linkCmd[] =
{
- "xa_link", "", "$1", NULL
+ "xa_link", "", "\"$1\"", NULL
};
/* $3 is replaced by assembler.debug_opts resp. port->assembler.plain_opts */
static const char *_asmCmd[] =
{
- "xa_rasm", "$l", "$3", "$1.asm", NULL
+ "xa_rasm", "$l", "$3", "\"$1.asm\"", NULL
};
/* Globals */
TARGET_ID_XA51,
"xa51",
"MCU 80C51XA", /* Target name */
+ NULL, /* Processor name */
{
+ glue,
FALSE, /* Emit glue around main */
MODEL_PAGE0,
MODEL_PAGE0
NULL, // default global map
1
},
+ { NULL, NULL },
{
-1, // stack grows down
0, // bank overhead NUY
"_",
_xa51_init,
_xa51_parseOptions,
+ NULL,
_xa51_finaliseOptions,
_xa51_setDefaultOptions,
xa51_assignRegisters,