aboutsummaryrefslogtreecommitdiff
path: root/opcodes/txvu-dis.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-01-21 01:12:57 +0000
committerDoug Evans <dje@google.com>1998-01-21 01:12:57 +0000
commit1a702a2431a52d81399626d8886988662e17dd2a (patch)
tree0283c6e8a0222c105bd088039156ee68e4e8ba73 /opcodes/txvu-dis.c
parent3e22d82025f3b1c5b2b6dd0d213d6521b7a33757 (diff)
downloadgdb-1a702a2431a52d81399626d8886988662e17dd2a.zip
gdb-1a702a2431a52d81399626d8886988662e17dd2a.tar.gz
gdb-1a702a2431a52d81399626d8886988662e17dd2a.tar.bz2
checkpoint
Diffstat (limited to 'opcodes/txvu-dis.c')
-rw-r--r--opcodes/txvu-dis.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/opcodes/txvu-dis.c b/opcodes/txvu-dis.c
index 8652f12..db1ed0a 100644
--- a/opcodes/txvu-dis.c
+++ b/opcodes/txvu-dis.c
@@ -50,8 +50,9 @@ print_insn_txvu (pc, info)
(*info->memory_error_func) (status, pc, info);
return -1;
}
- upper = bfd_getl32 (buffer);
- lower = bfd_getl32 (buffer + 4);
+ /* The lower instruction has the lower address. */
+ upper = bfd_getl32 (buffer + 4);
+ lower = bfd_getl32 (buffer);
/* FIXME: This will need revisiting. */
print_insn (pc, info, upper, 0);
@@ -167,9 +168,11 @@ print_insn (pc, info, insn, lower_p)
value -= 1 << operand->bits;
}
+#if 0 /* commas are part of the syntax string now */
/* If second or later operand, print a comma. */
if (num_operands > 0)
(*func) (stream, ",");
+#endif
/* Print the operand as directed by the flags. */
if (operand->print)
@@ -177,7 +180,7 @@ print_insn (pc, info, insn, lower_p)
else if (operand->flags & TXVU_OPERAND_FAKE)
; /* nothing to do (??? at least not yet) */
else if (operand->flags & TXVU_OPERAND_RELATIVE_BRANCH)
- (*info->print_address_func) (pc + value, info);
+ (*info->print_address_func) (pc + (value << 3), info);
/* ??? Not all cases of this are currently caught. */
else if (operand->flags & TXVU_OPERAND_ABSOLUTE_BRANCH)
(*info->print_address_func) ((bfd_vma) value & 0xffffffff, info);