A data access method uses variable mask data and shift amount to write
data into or read data from a data storage zone. The mask data and shift
amount are determined according to starting and end data bit addresses in
a bit range of the data to be read or written. Therefore, the data access
method is applicable to various platforms with various byte endians.