X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fxa51%2Fmain.c;h=05ba1c833400461919d8e0f7c75d39947e0ace1a;hb=e76f5fbeaa15ee0679147f7e2daccd74932faaca;hp=03c72ef30505de72d3f577507518e6c7e9818df7;hpb=598b42eac1d08810287fc5d39e47af9eb1a26632;p=fw%2Fsdcc diff --git a/src/xa51/main.c b/src/xa51/main.c index 03c72ef3..05ba1c83 100755 --- a/src/xa51/main.c +++ b/src/xa51/main.c @@ -148,6 +148,7 @@ _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\tr7,#0x%04x\n", options.stack_loc); fprintf (of, "\tcall\t_external_startup\n"); _xa51_genXINIT(of);