Added memory checks for 16-bit R/W operations