endian fixes and remove the X<->R[] instructions