Cjump / Rframe - Analog Devices ADSP-2106x SHARC User Manual

Table of Contents

Advertisement

Miscellaneous
A
Instruction Set Reference

cjump / rframe

Syntax:
CJUMP
RFRAME ;
Function:
The CJUMP instruction is generated by the C compiler for function calls,
and is not intended for use in assembly language programs. CJUMP
combines a direct or PC-relative jump with register transfer operations
that save the frame and stack pointers. The RFRAME instruction reverses
the register transfers to restore the frame and stack pointers.
The symbol "function" is a 24-bit immediate address for direct jumps. The
PC-relative address is a 24-bit, twos-complement value. The (DB) modifier
causes the jump to be delayed.
The different forms of this instruction perform the following operations:
Compiler-Generated
Instruction
CJUMP function (DB);
CJUMP (PC,<reladdr24>) (DB);
RFRAME;
Opcode: (with direct branch)
47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24
0 0 0 1
1 0 0 0
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Opcode: (with PC-relative branch)
47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24
0 0 0 1
1 0 0 0
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
A – 54
www.BDTIC.com/ADI
function
(DB) ;
(PC, <reladdr24>)
Operations Performed
JUMP function (DB), R2=I6, I6=I7;
JUMP (PC,function) (DB), R2=I6, I6=I7;
I7=I6, I6=DM(0,I6);
0 0 0 0
0 1 0 0
ADDR
0 1 0 0
0 1 0 0
RELADDR
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0

Advertisement

Table of Contents
loading

Table of Contents