Commits

Pierre Bourdon committed f6bb2eb

Fixed decoding of some instructions with extended opcodes

Comments (0)

Files changed (2)

 * BLOOP, BLOOPI control flow
-* Some instructions are not decoded correctly:
-    0xF0A1, 0xF1A0 -> LSL16'LS
                           stops=stops, jumps=jumps, calls=calls)
 
             if op[6]:  # extended
-                ext_7bit = (instr.opcode & 0x3000) == 0x3000
+                ext_7bit = (instr.opcode & 0xF000) == 0x3000
                 for ext in opcodes_ext[1:]:  # skip not extended
                     if ext_7bit and ext[1] >= 0x80:
                         continue