--- main.c 2004-04-28 17:04:43.000000000 -0500 +++ anothertemp/sdcc/src/mcs51/main.c 2004-01-08 10:08:03.000000000 -0600 @@ -169,9 +169,8 @@ fprintf (of, " djnz r0,00004$\n"); fprintf (of, " djnz r1,00004$\n"); /* r0 is zero now. Clearing 256 byte assuming 128 byte devices don't mind */ - fprintf (of, "00005$: ;mov @r0,a\n"); - fprintf (of, " ;djnz r0,00005$\n"); - fprintf (of, "; We do not want to clober our sfr registers, so comment the above two instructions\n"); + fprintf (of, "00005$: mov @r0,a\n"); + fprintf (of, " djnz r0,00005$\n"); fprintf (of, "; _mcs51_genRAMCLEAR() end\n"); } @@ -185,17 +184,17 @@ fprintf (of, " mov r2,#((l_XINIT+255) >> 8)\n"); fprintf (of, " mov dptr,#s_XINIT\n"); fprintf (of, " mov r0,#s_XISEG\n"); - fprintf (of, " mov _MPAGE,#(s_XISEG >> 8)\n"); + fprintf (of, " mov p2,#(s_XISEG >> 8)\n"); fprintf (of, "00001$: clr a\n"); fprintf (of, " movc a,@a+dptr\n"); fprintf (of, " movx @r0,a\n"); fprintf (of, " inc dptr\n"); fprintf (of, " inc r0\n"); fprintf (of, " cjne r0,#0,00002$\n"); - fprintf (of, " inc _MPAGE\n"); + fprintf (of, " inc p2\n"); fprintf (of, "00002$: djnz r1,00001$\n"); fprintf (of, " djnz r2,00001$\n"); - fprintf (of, " mov _MPAGE,#0xFF\n"); + fprintf (of, " mov p2,#0xFF\n"); fprintf (of, "00003$:\n"); fprintf (of, "; _mcs51_genXINIT() end\n");