mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
for L_3 and L_2. So we only get values in the right range for L_3 (0..7) and L_2 (0..3).
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Thu Jul 11 11:58:44 1996 Jeffrey A Law (law@cygnus.com)
|
Thu Jul 11 11:58:44 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
|
||||||
|
for L_3 and L_2.
|
||||||
|
|
||||||
* h8300-dis.c (bfd_h8_disassemble): Don't set plen for
|
* h8300-dis.c (bfd_h8_disassemble): Don't set plen for
|
||||||
3bit immediate operands.
|
3bit immediate operands.
|
||||||
|
|
||||||
|
@ -243,12 +243,12 @@ bfd_h8_disassemble (addr, info, mode)
|
|||||||
}
|
}
|
||||||
else if (looking_for & L_3)
|
else if (looking_for & L_3)
|
||||||
{
|
{
|
||||||
bit = thisnib;
|
bit = thisnib & 0x7;
|
||||||
}
|
}
|
||||||
else if (looking_for & L_2)
|
else if (looking_for & L_2)
|
||||||
{
|
{
|
||||||
plen = 2;
|
plen = 2;
|
||||||
abs = thisnib;
|
abs = thisnib & 0x3;
|
||||||
}
|
}
|
||||||
else if (looking_for == E)
|
else if (looking_for == E)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user