snowman
snowman copied to clipboard
ARM Thumb hack
As explained on the mailing list: http://lists.derevenets.com/pipermail/snowman/2017-June/000011.html
Shouldnt the check for instryction size be valid in THUMB mode?
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, hope that you are still around. Please see my issue 54 and also 53 Regards, KB