diff options
author | Nick Clifton <nickc@redhat.com> | 2015-02-11 14:36:39 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-02-11 14:36:39 +0000 |
commit | 90092e730582d024f621c78c6b5b1e6f2348e77d (patch) | |
tree | dcc57278835a85899e861e10bbe610cc2e196ab9 /opcodes/rl78-dis.c | |
parent | aa31c464df60c72920e849ed5cf64eef545e3014 (diff) | |
download | gdb-90092e730582d024f621c78c6b5b1e6f2348e77d.zip gdb-90092e730582d024f621c78c6b5b1e6f2348e77d.tar.gz gdb-90092e730582d024f621c78c6b5b1e6f2348e77d.tar.bz2 |
Fixes a problem with the RL78 disassembler which would incorrectly disassemble [HL+0] as [HL].
* rl78-decode.opc: Add 'a' attribute to instructions that support
[HL+0] addressing.
* rl78-decode.c: Regenerate.
* rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
addresses.
Diffstat (limited to 'opcodes/rl78-dis.c')
-rw-r--r-- | opcodes/rl78-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/rl78-dis.c b/opcodes/rl78-dis.c index 27394c9..a2298ce 100644 --- a/opcodes/rl78-dis.c +++ b/opcodes/rl78-dis.c @@ -284,7 +284,7 @@ print_insn_rl78 (bfd_vma addr, disassemble_info * dis) PR (PS, "[%s", register_names[oper->reg]); if (oper->reg2 != RL78_Reg_None) PR (PS, "+%s", register_names[oper->reg2]); - if (oper->addend) + if (oper->addend || do_addr) PR (PS, "+%d", oper->addend); PC (']'); break; |