
PART C -- read test string to FLASH memory at address 0x1000 and copy in tab eedata

   EA_save = EA;
   EA = 0;
   pwrite = 0x1000;
   FLSCL |= 0x40;
   PSCTL = 0x00;

   while (*pread !=' ') {

     *eedata = *pread;                // copy byte

      pread++;                         // advance pointers
	  pwrite++;
   }

   PSCTL = 0x00;                       // MOVX writes target XRAM
   
   FLSCL &= ~0x40;                     // disable FLASH writes/erases from
                                       // user software   

   EA = EA_save;                       // re-enable interrupts
