Merge pull request #1017 from zhuowei/tw_fallback_if_constant_ra Fix various issues with the twi/tw instructions