Print symbol names in comments for LDS/STS disassembly.
authorDenis Chertykov <chertykov@gmail.com>
Thu, 9 Jun 2016 16:00:57 +0000 (19:00 +0300)
committerDenis Chertykov <chertykov@gmail.com>
Thu, 9 Jun 2016 16:00:57 +0000 (19:00 +0300)
commit1857fe72aff6f254217956d141bff4b9ca454bc5
tree85738760d7e2c8810e930388514e7a293482bed2
parent337c570c5f4442459d3324c9429ad80840094015
Print symbol names in comments for LDS/STS disassembly.

This patch adds default data address space origin (0x800000) to the symbol addresses.
when disassemble lds/sts instructions. So that symbol names shall be printed in comments
for lds/sts instructions disassemble.

ld/
* testsuite/ld-avr/lds-mega.d: New test.
* testsuite/ld-avr/lds-mega.s: New test source.
* testsuite/ld-avr/lds-tiny.d: New test.
* testsuite/ld-avr/lds-tiny.s: New test source.

opcodes/
* avr-dis.c (avr_operand): Add default data address space origin (0x800000) to the
address and set as symbol address for LDS/ STS immediate operands.
ld/ChangeLog
ld/testsuite/ld-avr/lds-mega.d [new file with mode: 0644]
ld/testsuite/ld-avr/lds-mega.s [new file with mode: 0644]
ld/testsuite/ld-avr/lds-tiny.d [new file with mode: 0644]
ld/testsuite/ld-avr/lds-tiny.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/avr-dis.c