User`s guide

Inline Assembly Language and Intrinsics
Intrinsic Functions
182
Targeting MC56F83xx/DSP5685x Controllers
Prototype
void __mod_stop( int <mod_desc );
__mod_getint16
Retrieve a 16-bit signed value from the modulo buffer and update the modulo
pointer.This function returns an integer value from the location pointed to by the
modulo pointer. The function then updates the modulo pointer by <amount> integer
units (<amount>*2 bytes). <amount> must be a compile time constant.
Prototype
int __mod_getint16( int <mod_desc>, int <amount> );
Example
Retrieve an integer value from a modulo buffer and update the modulo buffer pointer
by one word.
int y;
y = __mod_getint16(0, 1);
__mod_setint16
Write a 16-bit signed integer to the modulo buffer and update the pointer. This
function evaluates <int_expr> and copies the value to the location pointed to by the
modulo pointer. The modulo pointer is then updated by <amount>. <amount> must be
a compile time constant.
Prototype
int __mod_setint16( int <mod_desc>, int <int_expr>, int <amount>
);
Example
Write the modulo buffer with a value derived from an expression, do not update
modulo pointer.