For several register pairs, the AVR-GCC includes specify shortened names, like EEAR that combines (?) EEARH and EEARL. For a long time, I've gotten away with writing these registers with a single assignment, such as:
But is this really safe? I realize it's probably not portable. Should I be splitting my writes into high and low bytes with shifts beforehand, and writing to the actual register names? Or maybe churn out some kind of union? Sorry if this has been answered before, but I couldn't find it.
(I'm working with the atmega64, if it's relevant. )