THUMB2: modified implementation of function "thumb2_modified_immediate"