Infineon Technologies C166S V2 User Manual page 285

16-bit microcontroller
Table of Contents

Advertisement

PCALL
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(tmp) ← (op1)
(SP) ← (SP) - 2
((SP)) ← (tmp)
(SP) ← (SP) - 2
((SP)) ← (IP)
(IP) ← op2
Description
Pushes the word specified by operand op1 and the value of the instruction pointer, IP,
onto the system stack, and branches to the absolute memory location specified by the
second operand op2. Because 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.
CPU Flags
E
Set if the value of the pushed operand op1 represents the lowest
possible negative number. Cleared otherwise. Used to signal the end of a
table.
Z
Set if the value of the pushed operand op1 equals zero. Cleared
otherwise.
V
Not affected.
C
Not affected.
N
Set if the most significant bit of the pushed operand op1 is set. Cleared
otherwise.
User Manual
Push Word and Call Subroutine Absolute
Call Instructions
PCALL op1, op2
op1 → WORD
op2 → 16-bit address offset
none
E
Z
*
*
Detailed Instruction Description
V
C
-
-
8-285
User Manual
C166S V2
PCALL
N
*
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents