Commit | Line | Data |
---|---|---|
d45a4bef JB |
1 | ;;; sample.S --- simple test program for M32C simulator |
2 | ;;; | |
3 | ;;; Copyright (C) 2005 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 'sample.x' and sample.mot targets in Makefile.in. | |
24 | ||
25 | .text | |
26 | ||
27 | .global _start | |
28 | _start: | |
29 | mov.w #0x1234,r1 | |
30 | mov.w r1,r3 | sha.w #-8,r3 | sha.w #-7,r3 | |
31 | brk |