ST10 FAMILY PROGRAMMING MANUAL
59/172
CALLR
Call Subroutine Relative
Syntax
CALLR op1
Operation
(SP)
<-- (SP) - 2
((SP)) <--
(IP)
(IP)
<-- (IP) + 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 dis-
tance 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 rep-
resents 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.
Condition Codes
See condition code Table 24 - page 35.
Flags
Addressing Modes
E
Z
V
C
N
-
-
-
-
-
E
Not affected
Z
Not affected
V
Not affected
C
Not affected
N
Not affected
Mnemonic
Format
Bytes
CALLR
rel
BB rr
2
Summary of Contents for ST10 Series
Page 2: ......