summaryrefslogtreecommitdiffstats
path: root/target/mips/tx79.decode
blob: 7af35458b0a7da9fa9d466d8bc8cd4bef9e685d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Toshiba C790's instruction set
#
# Copyright (C) 2021  Philippe Mathieu-Daudé
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Toshiba Appendix B  C790-Specific Instruction Set Details

###########################################################################
# Named attribute sets.  These are used to make nice(er) names
# when creating helpers common to those for the individual
# instruction patterns.

&rtype           rs rt rd sa

###########################################################################
# Named instruction formats.  These are generally used to
# reduce the amount of duplication between instruction patterns.

@rt_rd          ...... ..... rt:5  rd:5  ..... ......   &rtype rs=0 sa=0
@rs             ...... rs:5  ..... ..........  ......   &rtype rt=0 rd=0 sa=0
@rd             ...... ..........  rd:5  ..... ......   &rtype rs=0 rt=0 sa=0

###########################################################################

MFHI1           011100 0000000000  ..... 00000 010000   @rd
MTHI1           011100 .....  0000000000 00000 010001   @rs
MFLO1           011100 0000000000  ..... 00000 010010   @rd
MTLO1           011100 .....  0000000000 00000 010011   @rs

# MMI3

PCPYH           011100 00000 ..... ..... 11011 101001   @rt_rd