DSP++ [p0 ++] = r0

来源:互联网 发布:mac电脑截屏快捷键 编辑:程序博客网 时间:2024/05/19 10:38

Store Pointer Register


General Form

[ indirect_address ] = P-register

Syntax

[Preg ] =Preg ;   /* indirect (a)*/

[Preg ++ ] =Preg ;   /* indirect, post-increment (a)*/

[Preg -- ] =Preg ;   /* indirect, post-decrement (a)*/

[Preg +uimm6m4 ] = Preg ;   /* indexed with small offset (a)*/

[Preg +uimm17m4 ] = Preg ;   /* indexed with large offset (b)*/

[Preg -uimm17m4 ] = Preg ;   /* indexed with large offset (b)*/

[ FP -uimm7m4 ] =Preg ;   /* indexed FP-relative (a)*/


Options

The Store Pointer Register instruction supports the following options.

  • Post-increment the destination pointer by 4 bytes.
  • Post-decrement the destination pointer by 4 bytes.
  • Offset the source pointer with a small (6-bit), word-aligned (multiple of 4), unsigned constant.
  • Offset the source pointer with a large (18-bit), word-aligned (multiple of 4), signed constant.
  • Frame Pointer (FP) relative and offset with a 7-bit, word-aligned (multiple of 4), negative constant. 

Example

[ p2 ] = p3 ;

[ sp ++ ] = p5 ;

[ p0 -- ] = p2 ;

[ p2 + 8 ] = p3 ;

[ p2 + 0x4444 ] = p0 ;

[ fp -12 ] = p1 ;


0 0
原创粉丝点击