int32 co_register_get(co_register reg);
This function reads the contents of a register. This function must be called from within a process run function.
The argument for co_register_get is as follows:
The value of the register is returned as a 32-bit integer. If the register is wider than 32 bits, the least-significant 32 bits of data are returned as an integer. If the register is smaller than 32 bits, the integer value of the data in the register is returned.