code: def register_list(self):
          
          num_items = self.MAX_NUM_CPU_REGISTERS
          buf = (ctypes.c_uint32 * num_items)()
          num_regs = self._dll.JLINKARM_GetRegisterList(buf, num_items)
          return buf[:num_regs]
docs: Returns a list of the indices for the CPU registers.
  
          The returned indices can be used to read the register content or grab
          the register name.
  
          Args:
            self (JLink): the ``JLink`` instance
  
          Returns:
            List of registers.