2021-02-14 17:57:24 +01:00
|
|
|
# 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.
|
|
|
|
|
2021-02-13 12:04:43 +01:00
|
|
|
@rs_rt_rd ...... rs:5 rt:5 rd:5 ..... ...... &rtype sa=0
|
2021-02-13 11:57:56 +01:00
|
|
|
@rt_rd ...... ..... rt:5 rd:5 ..... ...... &rtype rs=0 sa=0
|
2021-02-14 17:20:19 +01:00
|
|
|
@rs ...... rs:5 ..... .......... ...... &rtype rt=0 rd=0 sa=0
|
2021-02-14 17:57:24 +01:00
|
|
|
@rd ...... .......... rd:5 ..... ...... &rtype rs=0 rt=0 sa=0
|
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
MFHI1 011100 0000000000 ..... 00000 010000 @rd
|
2021-02-14 17:20:19 +01:00
|
|
|
MTHI1 011100 ..... 0000000000 00000 010001 @rs
|
2021-02-14 17:57:24 +01:00
|
|
|
MFLO1 011100 0000000000 ..... 00000 010010 @rd
|
2021-02-14 17:20:19 +01:00
|
|
|
MTLO1 011100 ..... 0000000000 00000 010011 @rs
|
2021-02-13 11:57:56 +01:00
|
|
|
|
2021-02-13 12:04:43 +01:00
|
|
|
# MMI2
|
|
|
|
|
|
|
|
PCPYLD 011100 ..... ..... ..... 01110 001001 @rs_rt_rd
|
|
|
|
|
2021-02-13 11:57:56 +01:00
|
|
|
# MMI3
|
|
|
|
|
2021-02-13 12:04:43 +01:00
|
|
|
PCPYUD 011100 ..... ..... ..... 01110 101001 @rs_rt_rd
|
2021-02-13 11:57:56 +01:00
|
|
|
PCPYH 011100 00000 ..... ..... 11011 101001 @rt_rd
|