aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-01-20 18:07:07 +0000
committerDoug Evans <dje@google.com>1998-01-20 18:07:07 +0000
commit8ea2f96f9c35f14c6c5a4b658d44d2225e91cdd4 (patch)
treea0b9c6d1de535a5b65e7128e7b326311b65b9649 /include/opcode
parent94188a771abad5cf28cd85ac66546e2e922aecf9 (diff)
downloadgdb-8ea2f96f9c35f14c6c5a4b658d44d2225e91cdd4.zip
gdb-8ea2f96f9c35f14c6c5a4b658d44d2225e91cdd4.tar.gz
gdb-8ea2f96f9c35f14c6c5a4b658d44d2225e91cdd4.tar.bz2
checkpoint
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/txvu.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/opcode/txvu.h b/include/opcode/txvu.h
index c4924ba..4f7a6ed 100644
--- a/include/opcode/txvu.h
+++ b/include/opcode/txvu.h
@@ -22,8 +22,8 @@ Boston, MA 02111-1307, USA. */
/* Type to denote a TXVU instruction (at least a 32 bit unsigned int). */
typedef unsigned int TXVU_INSN;
-/* Maximum number of operands an instruction can have. */
-#define TXVU_MAX_OPERANDS 8
+/* Maximum number of operands and syntax chars an instruction can have. */
+#define TXVU_MAX_OPERANDS 16
struct txvu_opcode {
char *mnemonic;
@@ -94,8 +94,8 @@ struct txvu_operand {
/* This operand is a long immediate value. */
#define TXVU_OPERAND_LIMM 0x10
-/* This operand takes signed values. */
-#define TXVU_OPERAND_SIGNED 0x20
+/* This operand takes unsigned values (default is signed). */
+#define TXVU_OPERAND_UNSIGNED 0x20
/* This operand takes signed values, but also accepts a full positive
range of values. That is, if bits is 16, it takes any value from
@@ -191,12 +191,13 @@ struct txvu_operand {
/* Given an operand entry, return the table index. */
#define TXVU_OPERAND_INDEX(op) ((op) - 128)
-/* Positions and masks of various fields. */
+/* Positions, masks, and values of various fields used in multiple places
+ (the opcode table, the disassembler, GAS). */
#define TXVU_SHIFT_DEST 21
-#define TXVU_SHIFT_FTREG 16
-#define TXVU_SHIFT_FSREG 11
-#define TXVU_SHIFT_FDREG 6
-#define TXVU_MASK_VFREG 31
+#define TXVU_SHIFT_TREG 16
+#define TXVU_SHIFT_SREG 11
+#define TXVU_SHIFT_DREG 6
+#define TXVU_MASK_REG 31
#define TXVU_DEST_X 8
#define TXVU_DEST_Y 4
#define TXVU_DEST_Z 2