84 vcall vectored call – Texas Instruments MSP50C6xx User Manual
Page 268
Individual Instruction Descriptions
4-182
4.14.84
VCALL
Vectored Call
Syntax
[label]
name
dest
Clock, clk
Word, w
With RPT, clk
Class
VCALL
vector8
2
1
N/R
7a
Execution
Push PC + 1
PC
⇐
*(0x7F00 + vector8)
R7
⇐
R7 + 2
Flags Affected
None
Opcode
Instructions
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
VCALL vector8
1
1
1
1
1
1
1
0
1
vector8
Description
Unconditional vectored call (Macro call). Push next address onto stack, load
PC with the content of the address obtained by adding vector8 to 0x7F00. The
execution of the instruction continues from the new PC location. RET
instruction is used to return from VCALL. RET cannot immediately follow
VCALL. IRET can be used instead of RET and IRET can immidiately follow
VCALL. VCALL is used to call frequently used routines and takes 1 word.
See Also
RET, IRET, CALL, Ccc
Example 4.14.84.1
VCALL 0x7F02
Loads PC value with the program memory address stored in program memory location 0x7F02.