This routine writes a char value into the scratch pad. An char takes up one byte in the scratch pad. The index x is the address of that byte.
The scratch pad is accessible by all processes and reflexes. It provides a convenient means for parameter passing between processes and reflexes and is more efficient than using semaphores. It is the user's responsibility to keep track of scratch pad locations and prevent overwriting of data.
The GP 1.0 and 2.0 modules have 56 bytes of scratch pad RAM. This allows storage of up to 56 char values.
This would write a value of -24 into scratch pad byte 0.