Call - Analog Devices adsp-2100 Manual

Adsp-2100 family programmable single-chip microprocessors
Table of Contents

Advertisement

PROGRAM FLOW
15

CALL

Syntax:
Permissible conds (see Table 15.9)
EQ
LE
AC
Example:
Description:
specified call. If the condition is not true then perform a no-operation.
Omitting the condition performs the call unconditionally. The CALL
instruction is intended for calling subroutines. CALL pushes the PC stack
with the return address and causes program execution to continue at the
effective address specified by the instruction. The addressing modes
available for the CALL instruction are direct or register indirect.
For direct addressing (using an immediate address value or a label), the
program address is stored directly in the instruction word as a full 14-bit
field. For register indirect jumps, the selected I register provides the
address; it is not post-modified in this case.
If CALL is the last instruction inside a DO UNTIL loop, you must ensure
that the loop stacks are properly handled.
Status Generated:
Instruction Field:
Conditional JUMP Direct Instruction Type 10:
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0
0
Conditional JUMP Indirect Instruction Type 19:
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0
0
I specifies the I register (Indirect Address Pointer).
ADDR: immediate jump address
15 – 76
[ IF cond ] CALL
NE
GT
NEG
POS
NOT AC
MV
IF AV CALL scale_down;
Test the optional condition and, if true, then perform the
None affected.
0
1
1
1
0
0
1
0
1
(I4)
(I5)
(I6)
(I7)
<addr>
GE
LT
AV
NOT AV
NOT MV
NOT CE
ADDR
1
0
0
0
0
0
COND: condition
;
COND
0 0 0
I
0 1
COND

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents