Convert some register definitions to use structs.
Double buffering.