Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / ports / stm8-large / support.c
blob5d7f7073b843486d36e07949e854f965051c5cbb
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, (0x04, 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;