refactoring / optimization
extract regIdx, phys_mem8_uint