diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2003-07-12 07:35:40 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2003-07-12 07:35:40 +0000 |
commit | aa1a4e1fdee681bc26781988ecac5c9acb084547 (patch) | |
tree | 38ade8826645038c192886dd1f205708eb057228 /opcodes | |
parent | 3b282d4360a2c32d3f78980ec5f414b230df919c (diff) | |
download | gdb-aa1a4e1fdee681bc26781988ecac5c9acb084547.zip gdb-aa1a4e1fdee681bc26781988ecac5c9acb084547.tar.gz gdb-aa1a4e1fdee681bc26781988ecac5c9acb084547.tar.bz2 |
* h8300-dis.c (bfd_h8_disassemble): Mask off the high bit of rs and rd
for INC and DEC operands.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/h8300-dis.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5e44c49..3eceb68 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2003-07-12 Richard Sandiford <rsandifo@redhat.com> + + * h8300-dis.c (bfd_h8_disassemble): Mask off the high bit of rs and rd + for INC and DEC operands. + 2003-05-16 Nick Clifton <nickc@redhat.com> * configure.in (ALL_LINGUAS): Add Romanian translation. diff --git a/opcodes/h8300-dis.c b/opcodes/h8300-dis.c index 2a3cd21..7c94299 100644 --- a/opcodes/h8300-dis.c +++ b/opcodes/h8300-dis.c @@ -348,11 +348,11 @@ bfd_h8_disassemble (addr, info, mode) } else if (x & INC) { - fprintf (stream, "@%s+", pregnames[rs]); + fprintf (stream, "@%s+", pregnames[rs & 7]); } else if (x & DEC) { - fprintf (stream, "@-%s", pregnames[rd]); + fprintf (stream, "@-%s", pregnames[rd & 7]); } else if (x & IND) { |