summaryrefslogtreecommitdiff
path: root/sim/ucsim/s51.src/test/strr.c
blob: d1cc203a39e892a4ac61e27c37d2fe2ee7d90399 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

unsigned char __xdata * volatile sif;

void
main(void)
{
  volatile unsigned int i, j, x;
  __code char *p= (__code char *)0;

  sif= (unsigned char __xdata *)0xffff;
  for (j= 0; j<10; j++)
    for (i= 0; i<0xfff0; i++)
      x= p[i];
  * (char __idata *) 0 = * (char __xdata *) 0xfffe;
  *sif= 's';
}