xa51, work in progress
[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 <tinibios.h>
24
25 void
26 _putchar (char c)
27 {
28   _asm
29     mov.b r0l,[r7+2]
30     trap #0x0e
31   _endasm;
32 }
33
34 void
35 _exitEmu (void)
36 {
37   _asm
38     trap #0x0f
39   _endasm;
40 }
41