Motorola DSP56800 Betriebsanweisung Seite 181

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 446
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 180
Inline Assembly Language and Intrinsics
Intrinsic Functions
181Targeting MC56F83xx/DSP5685x Controllers
__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;
__mod_update
Update the modulo pointer. The __mod_update function updates the modulo pointer
by the number of data type units specified in <amount>. <amount> may be negative.
Of course, the pointer will wrap to the beginning of the modulo buffer if the pointer is
advanced beyond the modulo boundaries. <amount> must be a compile time constant.
Prototype
void __mod_update( int <mod_desc>, int <amount>);
Example
Advance the modulo pointer by 2 units.
__mod_access(0, 2);
__mod_stop
Reset modulo addressing to linear addressing. This function writes the modulo control
register with a value which restore linear addressing to the R0 and R1 pointer registers.
Seitenansicht 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 445 446

Kommentare zu diesen Handbüchern

Keine Kommentare