add basic register-field manipulation macros