reg code