Infineon Technologies C166S V2 User Manual page 231

16-bit microcontroller
Table of Contents

Advertisement

CALLA
Group
Syntax
Alternative Syntax CALLA+ op1, op2
Source Operand(s)
Destination Operand(s)
Operation
IF (op1) THEN
ELSE
END IF
Description
If the condition specified by op1 is met, a branch to the absolute memory location
specified by the second operand op2 is taken. The value of the instruction pointer IP is
placed into the system stack. Because the IP always points to the instruction following
the branch instruction, the value stored in the system stack represents the return
address of the calling routine. A static prediction scheme is used: if the bit 'a' of the
instruction long word is cleared then CALLA is assumed 'taken' and if this bit is set to 1,
CALLA is assumed 'not taken'. CALLA+ and CALLA- instructions are converted into
CALLA assumed 'taken' (prediction bit cleared) and 'not taken' (prediction bit set)
respectively. For regular CALLA instructions, the assembler assumes them 'taken'.
CPU Flags
E
Not affected.
Z
Not affected.
V
Not affected.
C
Not affected.
User Manual
Call Subroutine Absolute
Call Instructions
CALLA op1, op2
CALLA- op1, op2
op1 → extended condition code
op2 → 16-bit address offset
none
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← op2
next instruction
E
Z
-
-
Detailed Instruction Description
V
C
-
-
8-231
User Manual
C166S V2
CALLA
N
-
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents