snowman icon indicating copy to clipboard operation
snowman copied to clipboard

ARM Thumb hack

Open sanxiyn opened this issue 8 years ago • 3 comments

As explained on the mailing list: http://lists.derevenets.com/pipermail/snowman/2017-June/000011.html

sanxiyn avatar Jul 04 '17 09:07 sanxiyn

Shouldnt the check for instryction size be valid in THUMB mode?

nihilus avatar Jul 04 '17 19:07 nihilus

No, because Thumb instructions are 2-bytes aligned, but they can be either 2-bytes long or 4-bytes long. In particular, 4-bytes long Thumb instructions are NOT 4-bytes aligned.

Quoting ARM Manual, "The Thumb instruction stream is a sequence of halfword-aligned halfwords. Each Thumb instruction is either a single 16-bit halfword in that stream, or a 32-bit instruction consisting of two consecutive halfwords in that stream".

sanxiyn avatar Jul 05 '17 03:07 sanxiyn

sanxiyn, hope that you are still around. Please see my issue 54 and also 53 Regards, KB

beaumontk avatar Dec 07 '17 11:12 beaumontk