jbremer / darm

A light-weight and efficient disassembler written in C for the ARMv7 instruction set.
BSD 3-Clause "New" or "Revised" License
213 stars 43 forks source link

fixed incorrect width field for BFI #9

Closed pistol closed 11 years ago

pistol commented 11 years ago

As per A8.8.20 of the manual describing BFI: width: The number of bits to be copied, in the range 1 to 32-<lsb>. The required value of msbit is <lsb>+<width>-1.

Hence width = msb - lsb + 1