aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mn10300-dis.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-06 22:04:12 +0000
committerJeff Law <law@redhat.com>1996-12-06 22:04:12 +0000
commit832969900575ca4d0f2f55f3915420c457dab8bc (patch)
treedc64844416a0cda1c095e12fd0d6d473d9e1454f /opcodes/mn10300-dis.c
parentb2f7a7e5b38bcfd5eb6b222c6777caaa6abc71a3 (diff)
downloadgdb-832969900575ca4d0f2f55f3915420c457dab8bc.zip
gdb-832969900575ca4d0f2f55f3915420c457dab8bc.tar.gz
gdb-832969900575ca4d0f2f55f3915420c457dab8bc.tar.bz2
* mn10300-opc.c: Add some comments explaining the various
operands and such. * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
Diffstat (limited to 'opcodes/mn10300-dis.c')
-rw-r--r--opcodes/mn10300-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/mn10300-dis.c b/opcodes/mn10300-dis.c
index afae501..d5ba7c4 100644
--- a/opcodes/mn10300-dis.c
+++ b/opcodes/mn10300-dis.c
@@ -283,7 +283,7 @@ disassemble (memaddr, info, insn, extension, size)
&& size == mysize)
{
const unsigned char *opindex_ptr;
- unsigned int nocomma, memop;
+ unsigned int nocomma;
int paren = 0;
match = 1;
@@ -304,7 +304,7 @@ disassemble (memaddr, info, insn, extension, size)
value = insn & ((1 << operand->bits) - 1);
value <<= (32 - operand->bits);
temp = extension >> operand->shift;
- temp &= ((1 << 32 - operand->bits) - 1);
+ temp &= ((1 << (32 - operand->bits)) - 1);
value |= temp;
}
else if ((operand->flags & MN10300_OPERAND_EXTENDED) != 0)