xa 51, work in progress
[fw/sdcc] / src / xa51 / main.c
index 03c72ef30505de72d3f577507518e6c7e9818df7..05ba1c833400461919d8e0f7c75d39947e0ace1a 100755 (executable)
@@ -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);