Infineon Technologies C166S V2 User Manual page 234

16-bit microcontroller
Table of Contents

Advertisement

CALLR
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← (IP) + 2*sign_extend(op1)
Description
A branch is taken to the location specified by the instruction pointer IP plus the relative
displacement op1. The displacement is a two's complement number which is sign
extended and counts the relative distance in words. 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. The value of the IP used in the target address
calculation is the address of the instruction following the CALLR instruction.
CPU Flags
E
Not affected.
Z
Not affected.
V
Not affected.
C
Not affected.
N
Not affected.
Encoding
Mnemonic
CALLR
rel
User Manual
Call Subroutine Relative
Call Instructions
CALLR op1
op1 → 8-bit signed displacement
none
E
Z
-
-
Detailed Instruction Description
V
C
-
-
Format
BB rr
8-234
User Manual
C166S V2
CALLR
N
-
Bytes
2
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents