TOMI: 16- and 32-bit intreadwrite functions