Moved read/write bitmasks from avr_mem to avr_reg.