change reg/mem_access types to enums