85c986762089ab186b00549de727eb48dfc74331
[fw/sdcc] / support / regression / ports / xa51 / support.c
1 /*-------------------------------------------------------------------------
2   support.c - startup for regression tests with uCsim
3   
4    This program is free software; you can redistribute it and/or modify it
5    under the terms of the GNU General Public License as published by the
6    Free Software Foundation; either version 2, or (at your option) any
7    later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13    
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18    In other words, you are welcome to use, share and improve this program.
19    You are forbidden to forbid anyone else to use, share and improve
20    what you give them.   Help stamp out software-hoarding!
21 -------------------------------------------------------------------------*/
22
23 #include <80c51xa.h>
24
25 void external_startup(void) {
26   return;
27 }
28
29 void
30 _putchar (char c)
31 {
32   c;
33   _asm
34     mov.b r0l,[r7+2]
35     trap #0x0e
36   _endasm;
37 }
38
39 void
40 _initEmu (void)
41 {
42 }
43
44 void
45 _exitEmu (void)
46 {
47   _asm
48     trap #0x0f
49   _endasm;
50 }
51