Download Print this page

Siemens C16 Series Instruction Set Manual page 52

16-bit cmos single-chip microcontrollers

Advertisement

CALLR
Syntax
Operation
Description
Condition Codes
Condition Flags
Addressing Modes
Semiconductor Group
30Mar98@15:00h
Call Subroutine Relative
CALLR
op1
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← (IP) + sign_extend (op1)
A branch is taken to the location specified by the instruction pointer, IP,
plus the relative displacement, op1. The displacement is a two's comple-
ment number which is sign extended and counts the relative distance in
words. The value of the instruction pointer (IP) is placed onto the system
stack. Because the IP always points to the instruction following the branch
instruction, the value stored on 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.
See condition code table.
E
Z
-
-
E Not affected.
Z Not affected.
V Not affected.
C Not affected.
N Not affected.
Mnemonic
CALLR
rel
C166 Family Instruction Set
V
C
N
-
-
-
Format
BB rr
52
Instruction Description
CALLR
Version 1.2, 12.97
Bytes
2

Hide quick links:

Advertisement

loading