2018-02-19 20:28:12 +00:00
|
|
|
#
|
|
|
|
# OpenRISC instruction decode definitions.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Richard Henderson <rth@twiddle.net>
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
|
|
|
|
####
|
|
|
|
# System Instructions
|
|
|
|
####
|
|
|
|
|
|
|
|
l_sys 001000 0000000000 k:16
|
|
|
|
l_trap 001000 0100000000 k:16
|
|
|
|
l_msync 001000 1000000000 00000000 00000000
|
|
|
|
l_psync 001000 1010000000 00000000 00000000
|
|
|
|
l_csync 001000 1100000000 00000000 00000000
|
2018-02-19 20:52:43 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
# Branch Instructions
|
|
|
|
####
|
|
|
|
|
|
|
|
l_j 000000 n:s26
|
|
|
|
l_jal 000001 n:s26
|
|
|
|
l_bnf 000011 n:s26
|
|
|
|
l_bf 000100 n:s26
|
|
|
|
|
|
|
|
l_jr 010001 ---------- b:5 -----------
|
|
|
|
l_jalr 010010 ---------- b:5 -----------
|