summaryrefslogtreecommitdiff
path: root/sim/ucsim/stm8.src/test/t2.c
blob: a3e3df84f121751800420ff3c28531d9b189a44c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
volatile unsigned char *sif= (unsigned char *)0x7fff;

volatile char c;

int f(int i)
{
  c= i;
  return i;
}

void main(void)
{
  f('H'*256 + 'L');
  *sif= 'p';
  *sif= c;
  *sif= 's';
}