r16 support and some integer pointer fix