struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / ports / stm8 / support.c
blob003788dc6a135882f8c15c1d36ac2f3b098103b0
1 volatile static unsigned char *sif;
3 void
4 _putchar(unsigned char c)
6 *sif= 'p';
7 *sif= c;
8 return;
9 c;
10 __asm
11 ld a, (0x03, sp)
12 .db 0x71, 0xed
13 __endasm;
16 void
17 _initEmu(void)
19 sif= (unsigned char *)0x7fff;
22 void
23 _exitEmu(void)
25 *sif= 's';
26 return;
27 __asm
28 .db 0x71, 0xec
29 __endasm;