Added a GetRegister function to the CPU