Correct kCpRegister value and modify To/FromAllocationIndex to process the cp reg