121240Swosch;;; sample.s --- simple test program for M32C simulator 221240Swosch;;; 321240Swosch;;; Copyright (C) 2005-2023 Free Software Foundation, Inc. 421240Swosch;;; Contributed by Red Hat, Inc. 521240Swosch;;; 621240Swosch;;; This file is part of the GNU simulators. 721240Swosch;;; 821240Swosch;;; This program is free software; you can redistribute it and/or modify 921240Swosch;;; it under the terms of the GNU General Public License as published by 1021240Swosch;;; the Free Software Foundation; either version 3 of the License, or 1121240Swosch;;; (at your option) any later version. 1221240Swosch;;; 1321240Swosch;;; This program is distributed in the hope that it will be useful, 1421240Swosch;;; but WITHOUT ANY WARRANTY; without even the implied warranty of 1521240Swosch;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1621240Swosch;;; GNU General Public License for more details. 1721240Swosch;;; 1821240Swosch;;; You should have received a copy of the GNU General Public License 1921240Swosch;;; along with this program. If not, see <http://www.gnu.org/licenses/>. 2021240Swosch 2121240Swosch .text 2221240Swosch 2321240Swosch .global _start 2421240Swosch_start: 2521240Swosch mov.w #0x1234,r1 2621240Swosch mov.w r1,r3 | sha.w #-8,r3 | sha.w #-7,r3 2721240Swosch brk 2821240Swosch