summaryrefslogtreecommitdiff
path: root/sim/ucsim/stm8.src/test/t4.c
blob: d594dfe5ad41a57cc8a37887f7ae26e2873e6acc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

volatile unsigned char c;

int putchar(int ch)
{
  c= ch;
  return ch;
}

void main(void)
{
  printf("A");
  putchar('B');
  for (;;) ;
}