__mod_access

Retrieve the modulo pointer. The __mod_access function returns the modulo pointer value specified by <mod_desc> in the R2 register, as per calling conventions. The value returned is a byte address. The data in the modulo buffer may be read or written by a cast and dereference of the resulting pointer.

Prototype

  void *__mod_access( int <mod_desc>);

  
Example

Assign a value to the modulo buffer at the current pointer.


  *((char *)__mod_access(0)) = (char)i;