aboutsummaryrefslogtreecommitdiff
path: root/opcodes/v850-opc.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1996-08-22 05:29:14 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1996-08-22 05:29:14 +0000
commite89a42c117c011814e707a9c40502271e581bb9c (patch)
tree4c2c6f0d3d6c4584c36bdbb9dd8d88a40ff85af7 /opcodes/v850-opc.c
parent866d38a8528392b158b2f76b4a2107ade35b8526 (diff)
downloadgdb-e89a42c117c011814e707a9c40502271e581bb9c.zip
gdb-e89a42c117c011814e707a9c40502271e581bb9c.tar.gz
gdb-e89a42c117c011814e707a9c40502271e581bb9c.tar.bz2
Stub in load and store insns. Fix order of jarl operands
Diffstat (limited to 'opcodes/v850-opc.c')
-rw-r--r--opcodes/v850-opc.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/opcodes/v850-opc.c b/opcodes/v850-opc.c
index 6b3b022..67879b5 100644
--- a/opcodes/v850-opc.c
+++ b/opcodes/v850-opc.c
@@ -69,16 +69,18 @@ const struct v850_operand v850_operands[] = {
#define IF3 {D8}
/* 16-bit load/store instruction (Format IV) */
-#define IF4 {D6}
+#define IF4A {D6, R2}
+#define IF4B {R2, D6}
/* Jump instruction (Format V) */
#define IF5 {D22}
/* 3 operand instruction (Format VI) */
-#define IF6 {R1, R2, I16}
+#define IF6 {I16, R1, R2}
/* 32-bit load/store instruction (Format VII) */
-#define IF7 {R1, R2, D16}
+#define IF7A {D16, R1, R2}
+#define IF7B {R2, D16, R1}
/* Bit manipulation function. */
@@ -103,7 +105,19 @@ const struct v850_operand v850_operands[] = {
const struct v850_opcode v850_opcodes[] = {
/* load/store instructions */
-/* XXX */
+{ "sld.b", OP(0x00), OP_MASK, IF4A },
+{ "sld.h", OP(0x00), OP_MASK, IF4A },
+{ "sld.w", OP(0x00), OP_MASK, IF4A },
+{ "sst.b", OP(0x00), OP_MASK, IF4B },
+{ "sst.w", OP(0x00), OP_MASK, IF4B },
+{ "sst.l", OP(0x00), OP_MASK, IF4B },
+
+{ "ld.b", OP(0x00), OP_MASK, IF7A },
+{ "ld.h", OP(0x00), OP_MASK, IF7A },
+{ "ld.w", OP(0x00), OP_MASK, IF7A },
+{ "st.b", OP(0x00), OP_MASK, IF7B },
+{ "st.h", OP(0x00), OP_MASK, IF7B },
+{ "st.w", OP(0x00), OP_MASK, IF7B },
/* arithmetic operation instructions */
{ "mov", OP(0x00), OP_MASK, IF1 },
@@ -173,7 +187,7 @@ const struct v850_opcode v850_opcodes[] = {
{ "bsa", BOP(0xd), BOP_MASK, IF3 },
{ "jmp", one(0x0060), one(0xffe0), R1 },
-{ "jarl", one(0x0780), one(0xf83f), { R2,D22 } },
+{ "jarl", one(0x0780), one(0xf83f), { D22, R2 } },
{ "jr", one(0x0780), one(0xffe0), { D22 } },
/* bit manipulation instructions */