[PATCH] objdump target msp430

Nick Clifton nickc@redhat.com
Fri Jan 2 17:27:00 GMT 2004


Hi Albert,

> *** binutils-031223/opcodes/msp430-dis.c.org Mon Dec 30 20:25:14 2002
> --- binutils-031223/opcodes/msp430-dis.c Tue Dec 23 12:52:14 2003
> ***************
> *** 490,496 ****
> --- 490,499 ----
>      else if (regd == 2)
>        {
>          /* Absolute.  */
> +        short src;
> +        src = msp430dis_opcode (addr + 4, info);
>          dst = msp430dis_opcode (addr + 2, info);
> +        if (src != dst) return 0;
>          cmd_len += 4;
>          *cycles = 6;
>          sprintf (op1, "&0x%04x", PS (dst));

Thanks for submitting this patch.  I have applied it, along with a
small patch to the msp430 gas testsuite, to make sure that the bug
does not reappear.

Cheers
        Nick

opcodes/ChangeLog
2004-01-02  Albert Bartoszko  <albar@nt.kegel.com.pl>

	* msp430-dis.c (msp430_doubleoperand): Check for an 'add'
	instruction which looks similar to an 'rla' instruction.

gas/testsuite/ChangeLog
2004-01-02  Albert Bartoszko  <albar@nt.kegel.com.pl>

	* gas/msp430/opcode.s: Add test for an 'add' instruction which
	looks similar to an 'rla' instruction.

        



More information about the Binutils mailing list