Thumb parsing and encoding for STM.