User`s guide

Inline Assembly Language and Intrinsics
Intrinsic Functions
180
Targeting MC56F83xx/DSP5685x Controllers
__mod_init(0, (void *)&struct_buf[0], 3, sizeof(struct
mystruct) );
__mod_initint16
Initialize modulo buffer pointer with integer data. The __mod_initint16 function
behaves similarly to the __mod_init function, except that word addresses are used to
initialize the modulo pointer register.
Prototype
void __mod_initint16(
int <mod_desc>,
int * <addr_expr>,
int <mod_sz> );
Example
Initialize an integer modulo buffer pointer with a buffer size of 10.
__mod_initint16(0, &int_buf[9], 10);
__mod_start
Write the modulo control register. The __mod_start function simply writes the modulo
control register (M01) for each modulo pointer register which has been previously
initialized. The values written to M01 depends on the size of the modulo buffer and
which pointers have been initialized.
Prototype
void __mod_start( void );