X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fxa51%2Fmain.c;h=8875d3e7b964b4c88d0985e0afca507e54c1dda1;hb=7bd65e1fe4f20a1fbfd8efee29982849824704bd;hp=0c1584b2ea0b7c1459c37809cdd4c6a91c9a5c59;hpb=00aca2b00c23241366f8c1389543b92597537e70;p=fw%2Fsdcc diff --git a/src/xa51/main.c b/src/xa51/main.c index 0c1584b2..8875d3e7 100755 --- a/src/xa51/main.c +++ b/src/xa51/main.c @@ -149,10 +149,12 @@ _xa51_genAssemblerPreamble (FILE * of) 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"); _xa51_genXINIT(of); + fprintf (of, "\t.area CSEG\t(CODE)\n"); fprintf (of, "\tcall\t_main\n"); fprintf (of, "\treset\t;main should not return\n"); } @@ -285,9 +287,9 @@ PORT xa51_port = TRUE, // use_dw_for_init 0, /* leave lt */ 0, /* leave gt */ - 0, /* transform <= to ! > */ - 0, /* transform >= to ! < */ - 0, /* transform != to !(a == b) */ + 1, /* transform <= to ! > */ + 1, /* transform >= to ! < */ + 1, /* transform != to !(a == b) */ 0, /* leave == */ FALSE, /* No array initializer support. */ cseCostEstimation,