X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=opcodes%2Fcrx-dis.c;fp=opcodes%2Fcrx-dis.c;h=c7524572614e0b3151e372b93a02706ddd059b64;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hp=df152f86fb618521068a331758357f68627adc66;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10;p=msp430-binutils.git diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index df152f8..c752457 100644 --- a/opcodes/crx-dis.c +++ b/opcodes/crx-dis.c @@ -1,5 +1,5 @@ /* Disassembler code for CRX. - Copyright 2004, 2005, 2007 Free Software Foundation, Inc. + Copyright 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Contributed by Tomer Levi, NSC, Israel. Written by Tomer Levi. @@ -355,7 +355,7 @@ match_opcode (void) unsigned long mask; /* The instruction 'constant' opcode doewsn't exceed 32 bits. */ - unsigned long doubleWord = words[1] + (words[0] << 16); + unsigned long doubleWord = (words[1] + (words[0] << 16)) & 0xffffffff; /* Start searching from end of instruction table. */ instruction = &crx_instruction[NUMOPCODES - 2];