Implemented regsize() to get the effective size of the register.