https://sourceware.org/bugzilla/show_bug.cgi?id=16995

            Bug ID: 16995
           Summary: m68k coldfire emac immediate to macsr incorrect
                    disassembly
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: anders at 60deg dot net

The instruction move.l #,macsr is incorrectly disassembled as move.l Rx,macsr +
4 bytes of wrongly interpreted code.

I swapped the two lines

{"movel", 2,    one(0xa900),    one(0xffc0), "RsG-", mcfemac }, /* Rx,macsr. 
*/
{"movel", 6,    one(0xa93c),    one(0xffff), "#lG-", mcfemac }, /* #,macsr.  */

so #,macsr is tested first, I do not know if that it the best way to fix it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to