Converted ata read/write functions to work with bytes rather than words.