]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m32c/blinky.S
Copyright updates for 2007.
[thirdparty/binutils-gdb.git] / sim / m32c / blinky.S
CommitLineData
d45a4bef
JB
1;;; blinky.S --- sample program to blink LED's on M32C simulator
2;;;
6aba47ca 3;;; Copyright (C) 2005, 2007 Free Software Foundation, Inc.
d45a4bef
JB
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 .text
24
25 .global _start
26_start:
27 mov.w #0xe1,a0
28top:
29 sub.w #1,r0
30 mov.b r0h,[a0]
31
32 mov.w #1000,r1
33loop:
34 adjnz.w #-1,r1,loop
35
36 jmp.w top