aboutsummaryrefslogtreecommitdiff
path: root/opcodes/h8300-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/h8300-dis.c')
-rw-r--r--opcodes/h8300-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/h8300-dis.c b/opcodes/h8300-dis.c
index 3ba4d8b..959cb75 100644
--- a/opcodes/h8300-dis.c
+++ b/opcodes/h8300-dis.c
@@ -243,12 +243,12 @@ bfd_h8_disassemble (addr, info, mode)
}
else if (looking_for & L_3)
{
- bit = thisnib;
+ bit = thisnib & 0x7;
}
else if (looking_for & L_2)
{
plen = 2;
- abs = thisnib;
+ abs = thisnib & 0x3;
}
else if (looking_for == E)
{