]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32c/gloss.S
7190b5df2e026349aa05f7eb23dfbfbb70f43b69
[thirdparty/binutils-gdb.git] / sim / m32c / gloss.S
1 ;;; gloss.S --- system calls for sample2.x
2 ;;;
3 ;;; Copyright (C) 2005, 2007 Free Software Foundation, Inc.
4 ;;; Contributed by Red Hat, Inc.
5 ;;;
6 ;;; This file is part of the GNU simulators.
7 ;;;
8 ;;; The GNU simulators are free software; you can redistribute them
9 ;;; and/or modify them under the terms of the GNU General Public
10 ;;; License as published by the Free Software Foundation; either
11 ;;; version 2 of the License, or (at your option) any later version.
12 ;;;
13 ;;; The GNU simulators are distributed in the hope that they will be
14 ;;; useful, but WITHOUT ANY WARRANTY; without even the implied
15 ;;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 ;;; PURPOSE. See the GNU General Public License for more details.
17 ;;;
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with the GNU simulators; if not, write to the Free Software
20 ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ;;; 02110-1301, USA
22
23 ;;; See the 'sample2.x' target in Makefile.in.
24 .global _exit
25 _exit:
26 mov.b #1,r0l
27 ste.b r0l,0xe0000
28 rts
29
30 .global _foo
31 _foo:
32 mov.b #2,r0l
33 ste.b r0l,0xe0000
34 rts