reworking get/set_register() to write twice for sanity.