forked from Imagelibrary/binutils-gdb
Fix the disassembly of the LDS and STS instructions of the AVR architecture.
PR 25041 opcodes * avr-dis.c (avr_operand): Fix construction of address for lds/sts instructions. gas * testsuite/gas/avr/pr25041.s: New test. * testsuite/gas/avr/pr25041.d: New test driver.
This commit is contained in:
@@ -198,6 +198,8 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
|
||||
{
|
||||
unsigned int val = ((insn & 0xf) | ((insn & 0x600) >> 5)
|
||||
| ((insn & 0x100) >> 2));
|
||||
if ((insn & 0x100) == 0)
|
||||
val |= 0x80;
|
||||
*sym = 1;
|
||||
*sym_addr = val | 0x800000;
|
||||
sprintf (buf, "0x%02x", val);
|
||||
|
||||
Reference in New Issue
Block a user