change switch register access macros