summaryrefslogtreecommitdiff
path: root/sim/ucsim/s51.src/test/stp.c
blob: 12c31b5425cec4751c95c246e0f8f00fc5bc7e54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "hw.h"

unsigned char __xdata * volatile sif;

void
main(void)
{
  volatile unsigned int i, j;
  sif= (unsigned char __xdata *)0xffff;
  for (j= 0; j<10; j++)
    for (i= 0; i<0xfff0; i++)
      {
	P0= P1+1;
	P1++;
	P2= P3+1;
	P3++;
      }
  * (char __idata *) 0 = * (char __xdata *) 0xfffe;
  *sif= 's';
}