diff options
author | Jeff Law <law@redhat.com> | 1996-08-31 20:56:05 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-08-31 20:56:05 +0000 |
commit | 502535cff728b070ac9d121cfb2394551b9cd73b (patch) | |
tree | 5d5b836fdb22debb11fea1e730a0396eb16f7536 /opcodes/v850-opc.c | |
parent | a0a36aa08535f52a9862a867fd5cb8a39393d8fa (diff) | |
download | gdb-502535cff728b070ac9d121cfb2394551b9cd73b.zip gdb-502535cff728b070ac9d121cfb2394551b9cd73b.tar.gz gdb-502535cff728b070ac9d121cfb2394551b9cd73b.tar.bz2 |
* v850-dis.c (v850_reg_names): Define.
(v850_sreg_names, v850_cc_names): Likewise.
(disassemble): Very rough cut at printing operands (unformatted).
One step at a time.
* v850-opc.c (BOP_MASK): Fix.
(v850_opcodes): Fix mask for jarl and jr.
Bugs exposed by disassembler testing.
Diffstat (limited to 'opcodes/v850-opc.c')
-rw-r--r-- | opcodes/v850-opc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/v850-opc.c b/opcodes/v850-opc.c index a1c8953..56d3f7c 100644 --- a/opcodes/v850-opc.c +++ b/opcodes/v850-opc.c @@ -20,7 +20,7 @@ static long extract_d8_6 PARAMS ((unsigned long, int *)); /* conditional branch opcode */ #define BOP(x) ((0x0b << 7) | (x & 0x0f)) -#define BOP_MASK ((0x0b << 7) | 0x0f) +#define BOP_MASK ((0x0f << 7) | 0x0f) /* one-word opcodes */ #define one(x) ((unsigned int) (x)) @@ -247,8 +247,8 @@ const struct v850_opcode v850_opcodes[] = { { "bsa", BOP(0xd), BOP_MASK, IF3, 2 }, { "jmp", one(0x0060), one(0xffe0), { R1}, 2 }, -{ "jarl", one(0x0780), one(0xf83f), { D22, R2 }, 4 }, -{ "jr", one(0x0780), one(0xffe0), { D22 }, 4 }, +{ "jarl", one(0x0780), two(0x07c0,0x0001),{ D22, R2 }, 4 }, +{ "jr", one(0x0780), two(0xffc0,0x0001),{ D22 }, 4 }, /* bit manipulation instructions */ { "set1", two(0x07c0,0x0000), two(0xc7e0,0x0000), {B3, D16, R1}, 4 }, |